/* ===================================
    Global Styles & Reset
    =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* --- UPDATED --- */
    background: var(--bg-secondary); 
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    zoom: 0.85;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 0;
}

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

.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================================
    Quiz Section - Professional Design
    =================================== */
.quiz-section {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Quiz Header with Progress */
.quiz-header {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 5%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-info {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 600;
    white-space: nowrap;
}

.progress-current {
    font-size: 1.5rem;
    color: var(--primary);
}

.progress-divider {
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

.progress-total {
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

/* Question Slide */
.question-slide {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-light);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-content {
    max-width: 100%;
}

.question-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Options Container */
.options-container {
    display: grid;
    gap: 1rem;
}

.option-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option-card:hover::before {
    opacity: 0.05;
}

.option-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.option-card.selected .option-letter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.option-letter {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.option-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* Active state animation */
.option-card:active {
    transform: scale(0.98);
}

/* ===================================
    Homepage Styles
    =================================== */
.hero-section {
    padding: 3rem 0;
}

.intro-card {
    margin: 0 auto;
}

.quiz-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    animation: fadeInUp 0.6s ease;
    border: 1px solid var(--border-light);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card .quiz-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.quiz-card h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.quiz-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Info & FAQ Sections */
.info-section,
.faq-section {
    margin: 3rem 0;
}

.info-section .container,
.faq-section .container {
    background: var(--bg-primary);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.info-section h2,
.faq-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Benefits Section */
.benefits-section {
    margin: 3rem 0;
}
.benefits-section .container {
    background: var(--bg-primary);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}
.benefits-section h2 {
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.benefit-item {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}
.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.benefit-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- NEW STYLES for index.php sections --- */

/* General Section Lead */
.section-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: -1.5rem auto 2.5rem auto;
}

/* How It Works Section */
.how-it-works-section {
    margin: 3rem 0;
}
.how-it-works-section .container {
    background: var(--bg-primary);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}
.how-it-works-section h2 {
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.hiw-item {
    text-align: center;
    padding: 1rem;
}
.hiw-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-md);
}
.hiw-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.hiw-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Results Preview Section */
.results-preview-section {
    margin: 3rem 0;
}
.results-preview-section .container {
    background: var(--bg-primary);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}
.results-preview-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.result-preview-item {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 4px solid;
    text-align: center;
    transition: var(--transition);
}
.result-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.result-preview-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.result-preview-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.result-preview-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    margin: 3rem 0;
    padding: 4rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cta-section .btn-primary:hover {
    background: var(--bg-secondary);
    color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- END NEW STYLES --- */

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Result Page Styles */
.result-section {
    padding: 3rem 0;
}

.result-card {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 700px;
    margin: 0 auto;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.result-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.score-display {
    margin: 2.5rem 0;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border: 8px solid;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.ego-level-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.ego-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: left;
    font-size: 1.0625rem;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.share-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.share-label {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.score-breakdown {
    margin-top: 2rem;
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.score-breakdown h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.score-ranges {
    display: grid;
    gap: 1.5rem;
}

.score-range {
    padding: 1.75rem;
    padding-left: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
}

.range-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.score-range p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-links {
    margin: 1.25rem 0;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-credit {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-card {
        padding: 2rem 1.5rem;
    }
    
    .quiz-header {
        padding: 1.25rem 1.5rem;
    }
    
    .question-slide {
        padding: 2rem 1.5rem;
    }
    
    .question-text {
        font-size: 1.375rem;
        margin-bottom: 2rem;
    }
    
    .option-label {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .option-letter {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .option-text {
        font-size: 0.9375rem;
    }
    
    .quiz-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .progress-info {
        gap: 0.125rem;
    }
    
    .progress-current {
        font-size: 1.25rem;
    }
    
    .progress-total,
    .progress-divider {
        font-size: 1rem;
    }
    
    .quiz-card h1 {
        font-size: 1.75rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1.5rem;
    }

    /* --- NEW RESPONSIVE STYLES --- */
    .benefits-grid {
        grid-template-columns: 1fr; /* Stack benefits on mobile */
    }

    .hiw-grid,
    .results-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
}


/* Footer Links Divider */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.footer-link-divider {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}



.quiz-intro-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}




/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem; /* Adjust as needed */
}
.lang-switcher a {
    text-decoration: none;
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.lang-switcher a:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}
.lang-switcher a.active {
    color: var(--primary);
    background-color: var(--bg-tertiary);
}
.lang-switcher .lang-divider {
    color: var(--border);
    font-size: 1rem;
}







/* --- REPLACE your old .lang-switcher styles with this --- */

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.lang-button {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.lang-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-button::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-tertiary);
    margin-left: 0.75rem;
    transition: var(--transition);
}

.lang-button.open::after {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background-color: var(--bg-primary);
    width: 100%; /* <-- ADDED this */
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.lang-dropdown-content.show {
    display: block; /* Shown with JS */
}

.lang-dropdown-content a {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-dropdown-content a:hover {
    background-color: var(--bg-tertiary);
}

.lang-dropdown-content a.active {
    color: var(--primary);
    font-weight: 700;
    background-color: var(--bg-tertiary);
}
/* --- End of language dropdown styles --- */


/* --- ADD this to your CSS file for the new legal pages --- */

/* Content Page (for Privacy/Terms) */
.content-page {
    margin: 3rem 0;
}
.content-page .container {
    max-width: 800px;
    background: var(--bg-primary);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.content-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.content-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}
.content-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.content-page .last-updated {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}
/* --- End of content page styles --- */



/* Replace .share-label and .share-buttons with this */
.share-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    /* This will center the new single button */
    display: flex;
    justify-content: center;
}

/* Make the new share button a bit wider */
#share-result-btn {
    min-width: 200px;
}
