/* ==========================================================================
   LINGUA SOUL - Cultural Classes Styles
   Orange theme (#ff6b35) - Distinctive styling for cultural lessons
   ========================================================================== */

/* Theme Variables - Cultural Classes (Warm, Rounded, Community-focused) */
:root {
    --cultural-primary: #ff6b35;
    --cultural-secondary: #e55a2b;
    --cultural-accent: #ff8c61;
    --cultural-gradient: linear-gradient(135deg, #ff6b35, #e55a2b);
    --cultural-glow: 0 0 30px rgba(255, 107, 53, 0.3);

    /* Info Boxes - Dark mode friendly with good contrast */
    --cultural-info-bg: rgba(52, 73, 94, 0.6);
    --cultural-info-border: rgba(255, 107, 53, 0.4);
    --cultural-info-text: #ffffff;

    /* Vocabulary Boxes */
    --cultural-vocab-express: rgba(255, 107, 53, 0.15);
    --cultural-vocab-express-border: rgba(255, 107, 53, 0.5);
    --cultural-vocab-agree: rgba(46, 204, 113, 0.15);
    --cultural-vocab-agree-border: rgba(46, 204, 113, 0.5);
    --cultural-vocab-disagree: rgba(231, 76, 60, 0.15);
    --cultural-vocab-disagree-border: rgba(231, 76, 60, 0.5);
    --cultural-vocab-debate: rgba(52, 152, 219, 0.15);
    --cultural-vocab-debate-border: rgba(52, 152, 219, 0.5);

    /* Border radius for cultural classes - ROUNDED identity */
    --cultural-radius-sm: 12px;
    --cultural-radius-md: 16px;
    --cultural-radius-lg: 20px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.header {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(44, 62, 80, 0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cultural-primary);
    text-shadow: 2px 2px 12px rgba(255, 107, 53, 0.4);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.25rem;
    color: #e8eaed;
    font-style: italic;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
    background: rgba(26, 35, 50, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.25);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.section:hover {
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cultural-primary);
}

.section-header span {
    font-size: 1.75rem;
    line-height: 1;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--cultural-primary);
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   Exercise Styles
   ========================================================================== */

.exercise {
    background: rgba(44, 62, 80, 0.4);
    border: 2px solid rgba(255, 107, 53, 0.35);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.exercise:hover {
    background: rgba(44, 62, 80, 0.6);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.exercise-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cultural-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.exercise-title span {
    font-size: 1.375rem;
}

/* ==========================================================================
   Input & Selector Styles (MODERN)
   ========================================================================== */

.input-group input,
.vocabulary-table input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: rgba(26, 35, 50, 0.7);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gap-selector {
    display: inline-block;
    width: auto;
    min-width: 120px;
    max-width: 200px;
    padding: 0.5rem 3rem 0.5rem 1rem;
    background: rgba(26, 35, 50, 0.7);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff6b35' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    vertical-align: baseline;
    margin: 0 0.25rem;
}

.gap-selector:hover,
.input-group input:hover {
    border-color: var(--cultural-primary);
    background: rgba(26, 35, 50, 0.85);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.gap-selector:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--cultural-primary);
    background: rgba(26, 35, 50, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 4px 20px rgba(255, 107, 53, 0.3);
}

.gap-selector option {
    background: #1a2332;
    color: #ffffff;
    padding: 0.5rem;
}

/* ==========================================================================
   Vocabulary Table
   ========================================================================== */

.vocabulary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.vocabulary-table thead {
    background: var(--cultural-gradient);
}

.vocabulary-table th {
    padding: 0.875rem 0.875rem;
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vocabulary-table tbody tr {
    background: rgba(26, 35, 50, 0.6);
    transition: all 0.3s ease;
}

.vocabulary-table tbody tr:nth-child(even) {
    background: rgba(26, 35, 50, 0.4);
}

.vocabulary-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.01);
}

.vocabulary-table td {
    padding: 0.875rem 0.875rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
    color: #e8eaed;
    font-size: 0.9375rem;
}

.vocabulary-table td strong {
    color: var(--cultural-accent);
    font-weight: 600;
}

.vocabulary-table td input {
    margin: 0;
}

/* ==========================================================================
   Questions & Input Groups
   ========================================================================== */

.question {
    background: rgba(44, 62, 80, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-left: 4px solid var(--cultural-primary);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.question:hover {
    background: rgba(44, 62, 80, 0.5);
    border-left-width: 6px;
    transform: translateX(4px);
}

.question p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #e8eaed;
}

.question em {
    font-size: 0.875rem;
    color: #a0a8b3;
    font-style: italic;
}

.input-group {
    margin-top: 1.25rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--cultural-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Options Reference
   ========================================================================== */

.options-reference {
    background: rgba(26, 35, 50, 0.5);
    border: 2px solid rgba(255, 107, 53, 0.35);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2.5rem;
}

.options-reference h4 {
    font-size: 1.3rem;
    color: var(--cultural-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-item {
    background: rgba(44, 62, 80, 0.4);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-left: 4px solid var(--cultural-primary);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #e8eaed;
}

.option-item:hover {
    background: rgba(44, 62, 80, 0.6);
    border-left-width: 6px;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.verify-btn,
.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.verify-btn {
    background: var(--cultural-gradient);
    color: #ffffff;
    margin-right: 1rem;
}

.verify-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.verify-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.retry-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    display: none;
}

.retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

/* ==========================================================================
   Score Board & Explanations
   ========================================================================== */

.score-board {
    display: none;
    background: linear-gradient(135deg, #27ae60, #229954);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    animation: slideIn 0.5s ease-out;
}

.score-board h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.score-board p {
    font-size: 1.15rem;
    margin: 0.5rem 0;
    color: #ffffff;
}

.explanation {
    display: none;
    background: rgba(26, 35, 50, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    animation: slideIn 0.5s ease-out;
}

.explanation.show {
    display: block;
}

.explanation h4 {
    font-size: 1.5rem;
    color: var(--cultural-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.explanation ul {
    list-style: none;
    padding: 0;
}

.explanation li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
    font-size: 1.05rem;
}

.explanation li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Quote & Grammar Box
   ========================================================================== */

.quote {
    background: var(--cultural-gradient);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    font-size: 1.1rem;
    font-style: italic;
    color: #ffffff;
    line-height: 1.8;
}

.grammar-box {
    background: rgba(26, 35, 50, 0.7);
    border: 2px solid rgba(255, 107, 53, 0.35);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.grammar-box h4 {
    font-size: 1.4rem;
    color: var(--cultural-primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.grammar-box ul {
    list-style: none;
    padding: 0;
}

.grammar-box li {
    padding: 0.875rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
}

.grammar-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cultural-primary);
    font-size: 1.2rem;
}

/* ==========================================================================
   Speaking Cards
   ========================================================================== */

.speaking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.speaking-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(26, 35, 50, 0.8));
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.speaking-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.speaking-card:hover {
    transform: translateY(-8px);
    border-color: var(--cultural-primary);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.speaking-card:hover::before {
    opacity: 1;
}

.speaking-card.active {
    border-color: var(--cultural-primary);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.card-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e8eaed;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.card-tips {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 0;
}

.card-tips.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

.card-tips h4 {
    font-size: 1.1rem;
    color: var(--cultural-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-tips ul {
    list-style: none;
    padding: 0;
}

.card-tips li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e8eaed;
}

.card-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cultural-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================================================
   Final Results
   ========================================================================== */

.final-results {
    background: rgba(26, 35, 50, 0.95);
    border: 3px solid rgba(255, 107, 53, 0.5);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
    display: none;
    text-align: center;
    animation: slideIn 0.6s ease-out;
}

.final-results h2 {
    font-size: 2.5rem;
    color: var(--cultural-primary);
    margin-bottom: 2rem;
    font-weight: 800;
}

.overall-score {
    font-size: 4rem;
    font-weight: 900;
    color: var(--cultural-primary);
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    margin: 1.5rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.result-item {
    background: rgba(44, 62, 80, 0.6);
    border: 2px solid rgba(255, 107, 53, 0.35);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    border-color: var(--cultural-primary);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.result-item h4 {
    font-size: 1.2rem;
    color: var(--cultural-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.result-item p {
    font-size: 1.05rem;
    margin: 0.5rem 0;
    color: #e8eaed;
}

.result-item strong {
    color: var(--cultural-accent);
    font-size: 1.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.bounce {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Reflection Questions
   ========================================================================== */

.reflection-questions {
    background: rgba(26, 35, 50, 0.6);
    border: 2px solid rgba(255, 107, 53, 0.35);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.reflection-questions h4 {
    font-size: 1.4rem;
    color: var(--cultural-primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.reflection-questions ul {
    list-style: none;
    padding: 0;
}

.reflection-questions li {
    padding: 0.875rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
}

.reflection-questions li::before {
    content: '💭';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ==========================================================================
   Input States
   ========================================================================== */

.correct {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.15) !important;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.4) !important;
}

.incorrect {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.15) !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4) !important;
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(26, 35, 50, 0.98);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(255, 107, 53, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(229, 90, 43, 0.05));
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--cultural-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.lesson-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
}

.badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cultural-primary);
}

.badge-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #e8eaed;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--cultural-primary);
    transition: height 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.nav-link:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--cultural-primary);
    transform: translateX(5px);
}

.nav-link:hover::before,
.nav-link.active::before {
    height: 60%;
}

.nav-link.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--cultural-primary);
}

.nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* ==========================================================================
   Info Boxes & Vocabulary Cards - Reusable Components
   ========================================================================== */

/* General Info Box */
.info-box {
    background: var(--cultural-info-bg);
    border: 2px solid var(--cultural-info-border);
    border-radius: var(--cultural-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--cultural-info-text);
    backdrop-filter: blur(5px);
}

.info-box strong {
    color: var(--cultural-primary);
    font-weight: 600;
}

.info-box p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Vocabulary Boxes */
.vocab-box {
    padding: 2rem;
    border-radius: var(--cultural-radius-md);
    margin-bottom: 2rem;
    border: 2px solid;
    backdrop-filter: blur(5px);
}

.vocab-box h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.vocab-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vocab-box li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
}

.vocab-box li:last-child {
    border-bottom: none;
}

.vocab-box strong {
    color: #ffffff;
    font-weight: 600;
}

/* Vocabulary Box Types */
.vocab-express {
    background: var(--cultural-vocab-express);
    border-color: var(--cultural-vocab-express-border);
}

.vocab-agree {
    background: var(--cultural-vocab-agree);
    border-color: var(--cultural-vocab-agree-border);
}

.vocab-disagree {
    background: var(--cultural-vocab-disagree);
    border-color: var(--cultural-vocab-disagree-border);
}

.vocab-debate {
    background: var(--cultural-vocab-debate);
    border-color: var(--cultural-vocab-debate-border);
}

/* Video Container */
.video-info-box {
    background: rgba(44, 62, 80, 0.6);
    padding: 2rem;
    border-radius: var(--cultural-radius-md);
    border-left: 5px solid var(--cultural-primary);
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-info-box:hover {
    background: rgba(44, 62, 80, 0.8);
    border-left-width: 8px;
    transform: translateX(5px);
}

.video-info-box h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.video-info-box .video-link {
    color: var(--cultural-primary);
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.video-info-box p {
    color: #e8eaed;
    margin-bottom: 0.75rem;
}

.video-info-box strong {
    color: var(--cultural-accent);
}

.nav-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a0a8b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: var(--cultural-gradient);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 999px;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cultural-primary);
    text-align: center;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    background: var(--cultural-gradient);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Container adjustment for sidebar */
.container {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .container {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .speaking-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .vocabulary-table {
        font-size: 0.9rem;
    }

    .vocabulary-table th,
    .vocabulary-table td {
        padding: 1rem 0.75rem;
    }

    .sidebar {
        width: 260px;
    }
}

/* Scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(26, 35, 50, 0.5);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--cultural-primary);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--cultural-secondary);
}
