/* Premium Navy-Gold Text Converter Styles */

/* Base Styles */
:root {
    --navy-dark: #0a1e3c;
    --navy-medium: #1a2a44;
    --navy-light: #2c3e50;
    --gold-dark: #b08c1a;
    --gold-medium: #d4af37;
    --gold-light: #f1c40f;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #888888;
    --text-dark: #333333;
    --text-light: #f8f8f8;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
}

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.tool-header .container {
    position: relative;
    z-index: 2;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-medium));
    color: var(--navy-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-medium);
    z-index: 3;
}

.premium-badge i {
    margin-right: 0.5rem;
}

.tool-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tool-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.tool-title h1 i {
    color: var(--gold-medium);
    margin-right: 0.5rem;
}

.title-underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-medium));
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

.tool-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Content */
.tool-content {
    padding: 0 0 3rem;
}

/* Converter Container */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Input and Output Sections */
.input-section,
.output-section {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.input-section h2,
.output-section h2 {
    background: linear-gradient(to right, var(--navy-dark), var(--navy-medium));
    color: var(--white);
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.input-actions,
.output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.action-btn {
    background-color: var(--white);
    color: var(--navy-dark);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background-color: var(--light-gray);
    border-color: var(--dark-gray);
}

.action-btn i {
    color: var(--gold-medium);
}

/* Textareas */
#inputText,
#outputText {
    width: 100%;
    height: 250px;
    padding: 1rem;
    border: none;
    resize: vertical;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

#outputText {
    background-color: var(--light-gray);
}

/* Text Stats */
.text-stats {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
    color: var(--navy-dark);
    font-size: 0.9rem;
}

/* Conversion Controls */
.conversion-controls {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--medium-gray);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-group label {
    font-weight: 600;
    color: var(--navy-dark);
    font-size: 0.95rem;
}

.control-select {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 200px;
}

.control-select:hover {
    border-color: var(--dark-gray);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--navy-medium), var(--navy-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.primary-btn i {
    color: var(--gold-medium);
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
}

.features-section h2 {
    font-size: 1.8rem;
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.features-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-medium));
    border-radius: 1.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border: 1px solid var(--medium-gray);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-item i {
    font-size: 2rem;
    color: var(--navy-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--navy-dark);
    margin-bottom: 0.75rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* How To Use Section */
.how-to-section {
    margin-bottom: 3rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.how-to-section h2 {
    font-size: 1.8rem;
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.how-to-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-medium));
    border-radius: 1.5px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    font-size: 1.8rem;
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.faq-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-medium));
    border-radius: 1.5px;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--medium-gray);
}

.faq-question {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--navy-dark);
    margin: 0;
}

.faq-question i {
    color: var(--gold-medium);
    transition: var(--transition-fast);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-answer p {
    padding-bottom: 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .conversion-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .control-group {
        width: 100%;
    }
    
    .control-select {
        width: 100%;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .tool-title h1 {
        font-size: 2rem;
    }
    
    .tool-description {
        font-size: 1rem;
    }
    
    #inputText,
    #outputText {
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
    }
    
    .text-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .tool-header {
        padding: 2rem 0 1.5rem;
    }
    
    .premium-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .input-actions,
    .output-actions {
        justify-content: center;
    }
}
