/* Global Styles */
:root {
    --primary-color: #8b46e7;     /* Purple */
    --secondary-color: #4ECDC4;   /* Turquoise */
    --accent-color: #FFD166;      /* Golden yellow */
    --text-color: #2C3E50;        /* Dark slate blue */
    --dark-bg: #1A2A3A;           /* Darker blue */
    --light-bg: #f8f6ff;          /* Light purple tint */
    --positive-color: #06D6A0;    /* Bright teal */
    --negative-color: #EF476F;    /* Bright pink */
    --info-color: #118AB2;        /* Ocean blue */
    --warning-color: #FFD166;     /* Golden yellow */
    --highlight-color: #EF476F;   /* Using negative color for highlights */
    --border-radius: 12px;        /* More rounded corners */
    --box-shadow: 0 8px 15px rgba(139, 70, 231, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b46e7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

section:hover {
    transform: translateY(-5px);
}

/* Navigation */
.top-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7438c8 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    background: linear-gradient(to right, #fff, #f5f5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    border-radius: 10px;
    transition: width 0.3s;
}

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

/* Header */
header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px rgba(139, 70, 231, 0.1);
    animation: float 5s ease-in-out infinite;
}

.bonus-teaser {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-bg);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 10px;
    box-shadow: var(--box-shadow);
    animation: pulse 2s infinite, glow 1.5s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.bonus-teaser::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1) rotate(360deg); }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color), 0 0 20px var(--accent-color);
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--accent-color), 0 0 40px var(--accent-color);
    }
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.word-list {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    background-color: rgba(255, 209, 102, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 10px;
}

/* Vocabulary Section */
.vocabulary-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.vocabulary-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.vocabulary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    justify-content: center;
    margin-top: 20px;
}

.vocabulary-list li {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7438c8 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(139, 70, 231, 0.2);
    transition: transform 0.3s;
}

.vocabulary-list li:hover {
    transform: scale(1.05);
}

/* Storytelling Section */
.storytelling-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.storytelling-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.narrative {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    font-size: 1.1rem;
}

.story-scenes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.scene {
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

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

.scene-image {
    flex: 0 0 40%;
}

.scene-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.scene:hover .scene-image img {
    transform: scale(1.03);
}

.scene-text {
    flex: 1;
}

.highlight {
    background-color: rgba(239, 71, 111, 0.2);
    color: var(--highlight-color);
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--highlight-color);
    border-radius: 1px;
}

.play-icon {
    font-size: 12px;
}

/* Word Deep Dive */
.deep-dive-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.deep-dive-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.words-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.word-card {
    padding: 25px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
    border-top: 5px solid var(--primary-color);
}

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

.word-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    font-family: 'Quicksand', sans-serif;
}

.pos {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
    background: rgba(139, 70, 231, 0.1);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
}

.definition {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.5;
}

.example {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-size: 1.05rem;
    position: relative;
    border-left: 4px solid var(--accent-color);
}

/* Quiz Section */
.quiz-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.quiz-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.quiz-card {
    border-radius: var(--border-radius);
    padding: 25px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s;
}

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

.quiz-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    display: inline-block;
    background: rgba(139, 70, 231, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.question {
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.option:hover {
    background-color: rgba(139, 70, 231, 0.1);
}

.option input {
    margin-right: 10px;
}

.option label {
    cursor: pointer;
    font-weight: 600;
    flex-grow: 1;
}

.spelling-quiz {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.spelling-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(139, 70, 231, 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.spelling-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.check-answer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3dbdb5 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
}

.check-answer:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.4);
}

.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: none;
}

.feedback.correct {
    background-color: rgba(6, 214, 160, 0.2);
    color: var(--positive-color);
    display: block;
    border-left: 4px solid var(--positive-color);
}

.feedback.incorrect {
    background-color: rgba(239, 71, 111, 0.2);
    color: var(--negative-color);
    display: block;
    border-left: 4px solid var(--negative-color);
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 70, 231, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    padding: 40px;
    border-radius: var(--border-radius);
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7438c8 100%);
    color: white;
}

.secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3dbdb5 100%);
    color: white;
}

.youtube {
    background: linear-gradient(135deg, var(--negative-color) 0%, #d63c61 100%);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7438c8 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%238b46e7' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,154.7C384,149,480,107,576,90.7C672,75,768,85,864,96C960,107,1056,117,1152,117.3C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scene {
        flex-direction: column;
    }
    
    .scene-image {
        flex: 0 0 100%;
    }
    
    .words-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}
