/* Premium Navy-Gold Unit Converter Styles */

/* Root Variables */
: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;
    --gold-gradient: linear-gradient(135deg, var(--gold-dark), var(--gold-medium));
    --navy-gradient: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tool Header */
.tool-header {
    background: var(--navy-gradient);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.tool-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../assets/images/pattern.png');
    background-size: 200px;
    opacity: 0.05;
    pointer-events: none;
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-gradient);
    color: var(--navy-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: bold;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    z-index: 1;
}

.premium-badge i {
    color: var(--navy-dark);
}

/* Tool Title */
.tool-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

.title-underline {
    height: 4px;
    width: 80px;
    background: var(--gold-gradient);
    margin: 0.5rem auto 1.5rem;
    border-radius: 2px;
}

.tool-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Arrow Section */
.arrow-section {
    height: 40px;
    position: relative;
    z-index: 2;
}

.arrow {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    transform: rotate(45deg);
    margin: -20px auto 0;
    box-shadow: var(--shadow-light);
}

.arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    border-bottom: 3px solid var(--navy-medium);
    border-right: 3px solid var(--navy-medium);
}

/* Premium Card */
.premium-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    margin: 1.5rem auto 2rem;
    max-width: 1000px;
    transition: var(--transition-medium);
}

/* Unit Type Selector */
.unit-type-selector {
    margin-bottom: 2rem;
}

.unit-type-selector h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--navy-dark);
    font-size: 1.3rem;
}

.unit-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.unit-type-btn {
    background-color: var(--light-gray);
    color: var(--navy-medium);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
    font-size: 0.95rem;
}

.unit-type-btn:hover {
    background-color: var(--medium-gray);
    transform: translateY(-2px);
}

.unit-type-btn.active {
    background: var(--navy-gradient);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

/* Converter Interface */
.converter-interface {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-light);
}

.converter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.converter-col {
    flex: 1;
    min-width: 250px;
}

.converter-col label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-medium);
}

.converter-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.converter-input:focus {
    outline: none;
    border-color: var(--gold-medium);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.converter-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A2A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.converter-select:focus {
    outline: none;
    border-color: var(--gold-medium);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Swap Button */
.swap-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy-gradient);
    color: var(--white);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-light);
    font-size: 1.1rem;
}

.swap-btn:hover {
    background: var(--gold-gradient);
    transform: rotate(180deg);
    box-shadow: var(--shadow-medium);
}

/* Result Display */
.result-display {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-dark);
    box-shadow: var(--shadow-light);
}

/* Common Conversions */
.common-conversions {
    margin-top: 2.5rem;
}

.common-conversions h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--navy-dark);
    font-size: 1.4rem;
}

.table-responsive {
    overflow-x: auto;
}

.common-conversions-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.common-conversions-table th {
    background: var(--navy-gradient);
    color: var(--white);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
}

.common-conversions-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
}

.common-conversions-table tr:last-child td {
    border-bottom: none;
}

.common-conversions-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

/* How to Use Section */
.how-to-section {
    margin-top: 3.5rem;
    margin-bottom: 3rem;
}

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

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-medium);
    position: relative;
    border: 1px solid var(--medium-gray);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--gold-gradient);
    color: var(--navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-light);
    font-size: 1.1rem;
}

.step h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--navy-dark);
    font-size: 1.3rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

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

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--navy-dark);
    transition: var(--transition-fast);
}

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

.faq-toggle {
    color: var(--gold-medium);
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium), padding var(--transition-fast);
    color: var(--text-dark);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tool-title h1 {
        font-size: 2rem;
    }
    
    .premium-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .converter-row {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .unit-type-options {
        flex-wrap: wrap;
    }
    
    .unit-type-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    .steps {
        gap: 1.5rem;
    }
    
    .step {
        min-width: 220px;
    }
    
    .common-conversions-table th,
    .common-conversions-table td {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 2rem 0;
    }
    
    .tool-title h1 {
        font-size: 1.5rem;
    }
    
    .tool-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .premium-card {
        padding: 1.5rem 1.25rem;
        margin: 1.25rem 0.75rem 2rem;
    }
    
    .converter-interface {
        padding: 1.5rem 1.25rem;
    }
    
    .unit-type-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .converter-input,
    .converter-select {
        padding: 0.75rem 0.9rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}
