/* AI Content Humanizer Pro - v6.0 - FUTURISTIC REDESIGN */
:root {
    --primary: #e63946;
    --primary-light: #ff5a6e;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --secondary-light: #a8dadc;
    --light: #f8f9fa;
    --dark: #1d3557;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
    --gray: #6c757d;
    --border: rgba(69, 123, 157, 0.15);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Futuristic Font */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&display=swap');

.ai-humanizer-tool {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ai-humanizer-tool:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.humanizer-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    position: relative;
}

.humanizer-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.humanizer-header h2 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.humanizer-header p {
    color: var(--dark);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.9;
}

.input-section, .output-section {
    margin-bottom: 40px;
    background: var(--glass);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.input-section:hover, .output-section:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.input-section h3, .output-section h3 {
    margin-top: 0;
    color: var(--dark);
    padding-bottom: 20px;
    margin-bottom: 25px;
    font-size: 1.7rem;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
}

.input-section h3:before, .output-section h3:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    margin-right: 15px;
    border-radius: 3px;
}

textarea {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 17px;
    line-height: 1.7;
    resize: vertical;
    min-height: 280px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--dark);
    font-weight: 400;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
}

textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2),
                inset 0 1px 4px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.9);
}

.controls {
    margin: 40px 0;
    padding: 30px;
    background: var(--glass);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.key-phrases {
    margin-bottom: 30px;
}

.key-phrases label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.key-phrases input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--dark);
    font-weight: 500;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
}

.key-phrases input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2),
                inset 0 1px 4px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.9);
}

.advanced-options {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05), 
                0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.advanced-options h4 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
}

.option-group input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.option-group select {
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--dark);
    font-weight: 500;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
}

.option-group select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2),
                inset 0 1px 4px rgba(0,0,0,0.05);
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.button {
    position: relative;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: white !important;
    border: none;
    padding: 16px 36px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 0 var(--primary-dark),
        0 12px 20px rgba(230, 57, 70, 0.4),
        0 0 20px rgba(230, 57, 70, 0.6),
        0 0 40px rgba(230, 57, 70, 0.3);
    transition: all 0.2s ease;
    transform: translateY(0);
    overflow: hidden;
    flex: 1;
    text-align: center;
    min-width: 200px;
    z-index: 1;
}

.button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.6s;
    z-index: -1;
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 0 var(--primary-dark),
        0 16px 25px rgba(230, 57, 70, 0.5),
        0 0 25px rgba(230, 57, 70, 0.8),
        0 0 50px rgba(230, 57, 70, 0.4);
    text-shadow: 0 0 12px rgba(255, 255, 255, 1);
}

.button:hover:before {
    left: 100%;
}

.button:active {
    transform: translateY(4px);
    box-shadow: 
        0 4px 0 var(--primary-dark),
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(230, 57, 70, 0.5),
        0 0 30px rgba(230, 57, 70, 0.3);
}

.button:disabled {
    background: linear-gradient(145deg, #a0a0a0, #888888);
    box-shadow: 
        0 6px 0 #666666,
        0 8px 15px rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
    transform: translateY(0);
}

.button:disabled:hover {
    transform: translateY(0);
    box-shadow: 
        0 6px 0 #666666,
        0 8px 15px rgba(0, 0, 0, 0.1);
}

.processing-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark);
    font-size: 17px;
    margin-top: 25px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    display: none;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
}

.spinner {
    border: 3px solid rgba(69, 123, 157, 0.1);
    border-top: 3px solid var(--secondary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.output-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.word-count {
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 15px;
    border-radius: 10px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.detector-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.detector-score .result {
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.detector-score .zerogpt-compatible {
    background: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.error-message {
    background: #ffebee;
    color: var(--danger);
    padding: 18px 25px;
    border-radius: 12px;
    margin: 25px 0;
    font-size: 16px;
    border-left: 5px solid var(--danger);
    display: flex;
    align-items: center;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.1);
}

.error-message .error-icon {
    background: var(--danger);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
}

/* Futuristic Hover Effects */
.input-section, .output-section, .controls, .button, .key-phrases input, textarea {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-section:hover, .output-section:hover, .controls:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .ai-humanizer-tool {
        padding: 35px;
    }
    
    .humanizer-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .ai-humanizer-tool {
        padding: 25px;
        margin: 25px 15px;
    }
    
    .humanizer-header h2 {
        font-size: 2rem;
    }
    
    .input-section, .output-section, .controls {
        padding: 25px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        min-width: auto;
    }
    
    .detector-score {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    textarea {
        min-height: 220px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .ai-humanizer-tool {
        padding: 20px 15px;
    }
    
    .humanizer-header h2 {
        font-size: 1.8rem;
    }
    
    .humanizer-header p {
        font-size: 1rem;
    }
    
    .input-section, .output-section, .controls {
        padding: 20px;
    }
    
    .input-section h3, .output-section h3 {
        font-size: 1.5rem;
    }
    
    textarea {
        min-height: 200px;
        padding: 15px;
        font-size: 16px;
    }
    
    .button {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .key-phrases input {
        padding: 12px 15px;
    }
}