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

:root {
    --primary: #1a5f7a;
    --primary-dark: #134b61;
    --secondary: #ff6b6b;
    --accent: #ffd93d;
    --dark: #2d3436;
    --light: #f8f9fa;
    --gray: #636e72;
    --success: #00b894;
    --warning: #fdcb6e;
    --cockney: #e74c3c;
    --scouse: #3498db;
    --geordie: #27ae60;
    --glasgow: #9b59b6;
    --common: #f39c12;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn:hover, .lang-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-quote {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-quote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.hero-quote cite {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Daily Dose Section */
.daily-dose {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.daily-expressions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Hide cards 2 and 3 by default (all languages) */
.expression-card[data-index="1"],
/* Hide cards 2 and 3 by default (all languages) */
.expression-card[data-index="1"],
.expression-card[data-index="2"] {
    display: none;
}

/* Hide completed cards */
.expression-card.completed {
    display: none !important;
}

.expression-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expression-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.expression-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.meaning {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.example {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.fun-fact {
    background: #fff3cd;
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.fact-label {
    font-weight: 700;
    color: var(--dark);
    display: block;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Daily Progress */
.daily-progress {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.progress-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    transition: width 0.5s ease;
}

.progress-subtext {
    color: var(--gray);
}

/* Regions Section */
.regions {
    padding: 4rem 0;
    background: var(--light);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.region-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.region-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.region-city {
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.region-desc {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.region-stats {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
}

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-header {
    background: var(--secondary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.story-icon {
    font-size: 2rem;
}

.story-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.story-content {
    padding: 2rem;
}

.story-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.story-takeaway {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.story-content .btn-secondary {
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-brand h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
}

.footer-copyright p {
    margin-bottom: 0.3rem;
}

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

/* Quiz Modal */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quiz-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quiz-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.modal-region {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light);
    color: var(--dark);
}

.modal-slang {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-example {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    background: var(--light);
    border: 2px solid transparent;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(5px);
}

.option-btn.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
    animation: pulse 0.5s ease;
}

.option-btn.incorrect {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    animation: shake 0.5s ease;
}

.quiz-feedback {
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.feedback-correct {
    background: #d4edda;
    border-left: 4px solid var(--success);
}

.feedback-incorrect {
    background: #f8d7da;
    border-left: 4px solid var(--secondary);
}

.feedback-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.quiz-feedback p {
    margin-bottom: 0.5rem;
}

.quiz-feedback .btn-primary {
    margin-top: 1rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .daily-expressions {
        grid-template-columns: 1fr;
    }
    
    .regions-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-slang {
        font-size: 1.8rem;
    }
    
    .option-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}
