/* =========================================================
   Miriam's Summer School 2026 – Enhanced Schedule Styles
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --border-radius: 12px;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.2);
    --transition: all 0.25s ease;
}

/* ── Week-Themed Header Backgrounds ─────────────────────── */
.week-1 .header-section { background: linear-gradient(135deg, rgba(124,58,237,0.72), rgba(79,70,229,0.72), rgba(37,99,235,0.72)), url('/Week1_FantasyKingdom.png') center/cover no-repeat; }
.week-2 .header-section { background: linear-gradient(135deg, rgba(21,128,61,0.72), rgba(22,163,74,0.72), rgba(74,222,128,0.72)), url('/Week2_RainforestAdventure.png') center/cover no-repeat; }
.week-3 .header-section { background: linear-gradient(135deg, rgba(180,83,9,0.72), rgba(217,119,6,0.72), rgba(251,191,36,0.72)), url('/Week3_AncientEgypt.png') center/cover no-repeat; }
.week-4 .header-section { background: linear-gradient(135deg, rgba(29,78,216,0.72), rgba(37,99,235,0.72), rgba(220,38,38,0.72)), url('/Week4_Superheroes.png') center/cover no-repeat; }
.week-5 .header-section { background: linear-gradient(135deg, rgba(14,116,144,0.72), rgba(8,145,178,0.72), rgba(34,211,238,0.72)), url('/Week5_DeepSeaDiscovery.png') center/cover no-repeat; }
.week-6 .header-section { background: linear-gradient(135deg, rgba(190,24,93,0.72), rgba(219,39,119,0.72), rgba(249,168,212,0.72)), url('/Week6_MagicalSweets.png') center/cover no-repeat; }
.week-7 .header-section { background: linear-gradient(135deg, rgba(124,58,237,0.72), rgba(109,40,217,0.72), rgba(76,29,149,0.72)), url('/Week7_DinosaurWorld.png') center/cover no-repeat; }
.week-8 .header-section { background: linear-gradient(135deg, rgba(55,65,81,0.72), rgba(75,85,99,0.72), rgba(107,114,128,0.72)), url('/Week8_MysteryDetective.png') center/cover no-repeat; }
.week-9 .header-section { background: linear-gradient(135deg, rgba(3,105,161,0.72), rgba(2,132,199,0.72), rgba(56,189,248,0.72)), url('/Week9_AroundTheWorld.png') center/cover no-repeat; }

.header-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 1.5rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.header-section h1 { font-size: 2rem; font-weight: 800; }
.header-section h1 .emoji { font-size: 2.5rem; margin-right: 0.5rem; }
.header-section h2 { font-size: 1.4rem; font-weight: 700; }
.header-section .text-muted { color: rgba(255,255,255,0.8) !important; }

/* ── Week Navigation Buttons ────────────────────────────── */
.week-navigation .btn-primary {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.week-navigation .btn-primary:hover:not(:disabled) {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
}
.week-navigation .btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.math-topic-badge {
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.35);
}
.standards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.standards-item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 0.4rem 0.85rem;
    text-align: left;
    max-width: 340px;
}
.standards-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.15rem;
}
.standards-codes {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.1rem;
}
.standards-note {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
}

/* ── Calendar Grid ──────────────────────────────────────── */
.calendar-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 90px repeat(5, 1fr);
    min-width: 700px;
}

/* Headers */
.time-header, .day-header {
    background: #1e293b;
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
}

.time-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.day-header { line-height: 1.3; }
.day-header .day-name { font-size: 1rem; }
.day-header .day-date { font-size: 0.8rem; opacity: 0.85; }
.day-header.today  { background: #7c3aed; }
.today-indicator {
    font-size: 0.65rem;
    background: #fbbf24;
    color: #1e293b;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    margin-top: 3px;
    display: inline-block;
    font-weight: 800;
}

/* Time Slots Column */
.time-slot {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.time-slot.current-time { background: #fef9c3; color: #854d0e; border-color: #fde047; }

/* Activity Cells */
.activity-slot {
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    min-height: 64px;
    position: relative;
}
.activity-slot:hover { box-shadow: var(--shadow-hover); z-index: 2; transform: scale(1.01); }

.activity-header {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.activity-title { font-weight: 700; font-size: 0.8rem; line-height: 1.2; }
.activity-description { font-size: 0.7rem; color: #64748b; line-height: 1.3; }
.optional-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #7c3aed;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    vertical-align: middle;
}

/* ── Activity Type Colors ────────────────────────────────── */
.activity-reading  { background: #eff6ff; border-left: 4px solid #3b82f6; }
.activity-journal  { background: #f5f3ff; border-left: 4px solid #8b5cf6; }
.activity-math     { background: #fff7ed; border-left: 4px solid #f97316; }
.activity-break    { background: #f0fdf4; border-left: 4px solid #22c55e; }
.activity-routine  { background: #f8fafc; border-left: 4px solid #94a3b8; }
.activity-free     { background: #fafafa; }
.activity-art      { background: #fdf4ff; border-left: 4px solid #d946ef; }
.activity-science  { background: #f0fdf4; border-left: 4px solid #10b981; }

.activity-reading:hover  { background: #dbeafe; }
.activity-journal:hover  { background: #ede9fe; }
.activity-math:hover     { background: #ffedd5; }
.activity-break:hover    { background: #dcfce7; }
.activity-routine:hover  { background: #f1f5f9; }
.activity-art:hover      { background: #fae8ff; }
.activity-science:hover  { background: #d1fae5; }

/* Today column highlight */
.today-column { background-color: rgba(124, 58, 237, 0.04); }
.activity-reading.today-column  { background: #dbeafe; }
.activity-journal.today-column  { background: #ede9fe; }
.activity-math.today-column     { background: #ffedd5; }
.activity-break.today-column    { background: #dcfce7; }
.activity-routine.today-column  { background: #f1f5f9; }
.activity-art.today-column      { background: #fae8ff; }
.activity-science.today-column  { background: #d1fae5; }

/* Current time highlight */
.current-time-slot { outline: 3px solid #fbbf24; outline-offset: -3px; }

/* Completed activities */
.completed-activity { opacity: 0.6; }
.completed-activity .activity-title { text-decoration: line-through; }

/* Checkboxes */
.activity-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #7c3aed;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Celebration Animation ───────────────────────────────── */
@keyframes celebrationPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.celebration-animation { animation: celebrationPop 0.6s ease; }

@keyframes checkboxPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.celebration-checkbox { animation: checkboxPop 0.5s ease; }

/* ── Daily Cards ─────────────────────────────────────────── */
.daily-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.daily-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    border-top: 4px solid #cbd5e1;
    transition: var(--transition);
}
.daily-card:hover { box-shadow: var(--shadow-hover); }
.daily-card.today-card { border-top-color: #7c3aed; }

.daily-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    border: none;
}
.daily-card .card-header h4 { font-size: 1rem; font-weight: 700; margin: 0; color: #1e293b; }
.today-badge {
    background: #7c3aed;
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 800;
}

/* Quote */
.quote-section { margin-bottom: 1rem; }
.quote-section h6 { font-size: 0.75rem; font-weight: 700; color: #7c3aed; margin-bottom: 0.4rem; }
.quote-section blockquote {
    font-style: italic;
    font-size: 0.85rem;
    color: #374151;
    border-left: 3px solid #c4b5fd;
    padding-left: 0.75rem;
    margin: 0;
    line-height: 1.5;
}

/* Journal */
.journal-section { margin-bottom: 1rem; }
.journal-section h6 { font-size: 0.75rem; font-weight: 700; color: #8b5cf6; margin-bottom: 0.4rem; }
.journal-section p { font-size: 0.82rem; color: #374151; margin: 0; line-height: 1.5; }

/* Math Preview */
.math-preview-section { margin-bottom: 1rem; padding: 0.75rem; background: #fff7ed; border-radius: 8px; border: 1px solid #fed7aa; }
.math-preview-section h6 { font-size: 0.75rem; font-weight: 700; color: #f97316; margin-bottom: 0.4rem; }
.math-preview-section p { font-size: 0.78rem; color: #374151; margin-bottom: 0.25rem; line-height: 1.4; }
.math-preview-section p:last-child { margin-bottom: 0; }

/* Jokes */
.jokes-section h6 { font-size: 0.75rem; font-weight: 700; color: #f59e0b; margin-bottom: 0.5rem; }
.jokes-locked-message {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}
.joke-container { margin-bottom: 0.75rem; }
.joke p { font-size: 0.82rem; margin-bottom: 0.35rem; color: #374151; }
.joke-reveal-button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}
.joke-reveal-button:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(245,158,11,0.4); }
.joke-answer {
    font-size: 0.8rem;
    color: #15803d;
    font-weight: 600;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-radius: 6px;
}
.joke-answer.revealed {
    max-height: 80px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.35rem 0.6rem;
    margin-top: 0.35rem;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal.show { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content { border-radius: var(--border-radius); border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; border-radius: var(--border-radius) var(--border-radius) 0 0; }
.modal-title { font-weight: 700; }
.btn-close { filter: brightness(0) invert(1); }

/* Current book banner */
.current-book-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
}
.current-book-label { font-size: 0.75rem; font-weight: 700; color: #3b82f6; white-space: nowrap; }
.current-book-title { font-size: 0.9rem; font-style: italic; color: #1e293b; font-weight: 600; }

/* Reading resources */
.reading-links-section { margin-top: 1rem; }
.reading-links-section h6 { font-weight: 700; color: #3b82f6; margin-bottom: 0.5rem; }
.btn-purple { background-color: #7c3aed; border-color: #7c3aed; color: white; }
.btn-purple:hover { background-color: #6d28d9; border-color: #6d28d9; color: white; }

/* Journal in modal */
.journal-detail-section { background: #f5f3ff; border-radius: 8px; padding: 1rem; margin-top: 0.75rem; }
.journal-detail-section h6 { color: #7c3aed; font-weight: 700; margin-bottom: 0.5rem; }
.journal-prompt { font-size: 0.95rem; color: #374151; line-height: 1.6; margin: 0; }

/* Math detail panel */
.math-detail-section { margin-top: 0.75rem; }
.math-header { color: #f97316; font-weight: 700; margin-bottom: 1rem; border-bottom: 2px solid #fed7aa; padding-bottom: 0.5rem; }

.math-resource-block {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}
.khan-block     { background: #eff6ff; border-left: 4px solid #3b82f6; }
.mrj-block      { background: #fff1f2; border-left: 4px solid #ef4444; }
.ixl-block      { background: #fff7ed; border-left: 4px solid #f97316; }
.spectrum-block { background: #f0fdf4; border-left: 4px solid #22c55e; }
.math-notes-block { background: #fefce8; border-left: 4px solid #eab308; border-radius: 10px; padding: 0.85rem 1rem; }

.math-resource-label { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.25rem; }
.math-resource-topic { font-size: 0.92rem; color: #1e293b; font-weight: 600; line-height: 1.4; }
.math-notes-text { font-size: 0.88rem; color: #374151; line-height: 1.5; }

/* ── Art Detail Panel ────────────────────────────────────── */
.art-detail-section { margin-top: 0.75rem; }
.art-header { color: #d946ef; font-weight: 700; margin-bottom: 1rem; border-bottom: 2px solid #f0abfc; padding-bottom: 0.5rem; }
.art-resource-block { background: #fdf4ff; border-radius: 10px; padding: 1rem; margin-bottom: 0.75rem; border-left: 4px solid #d946ef; }
.art-title { font-size: 1.1rem; color: #1e293b; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }
.art-challenge-block { background: #fef9c3; border-left: 4px solid #eab308; border-radius: 10px; padding: 0.85rem 1rem; }
.art-challenge-text { font-size: 0.88rem; color: #374151; line-height: 1.5; font-style: italic; }
.btn-art { background: #d946ef; border-color: #d946ef; color: white; font-size: 0.8rem; }
.btn-art:hover { background: #c026d3; border-color: #c026d3; color: white; }

/* ── Science Lab Detail Panel ───────────────────────────── */
.science-detail-section { margin-top: 0.75rem; }
.science-header { color: #10b981; font-weight: 700; margin-bottom: 1rem; border-bottom: 2px solid #a7f3d0; padding-bottom: 0.5rem; }
.science-experiment-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin-bottom: 0.75rem; }
.science-video-block { background: #f0fdf4; border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 0.6rem; border-left: 4px solid #10b981; }
.science-video-label { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.3rem; }
.science-video-title { font-size: 0.9rem; color: #1e293b; font-weight: 600; margin-bottom: 0.5rem; }
.science-twist-block { background: #fef9c3; border-left: 4px solid #eab308; border-radius: 10px; padding: 0.85rem 1rem; margin-top: 0.75rem; }
.science-twist-text { font-size: 0.88rem; color: #374151; line-height: 1.5; font-style: italic; }
.science-standards-block { background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 10px; padding: 0.85rem 1rem; margin-top: 0.75rem; }
.science-standards-codes { font-size: 0.85rem; font-weight: 700; color: #1d4ed8; margin-bottom: 0.35rem; }
.science-standards-note { font-size: 0.83rem; color: #374151; line-height: 1.5; }
.btn-science { background: #10b981; border-color: #10b981; color: white; font-size: 0.8rem; }
.btn-science:hover { background: #059669; border-color: #059669; color: white; }

/* Science preview in daily card */
.science-preview-section { margin-bottom: 1rem; padding: 0.75rem; background: #f0fdf4; border-radius: 8px; border: 1px solid #a7f3d0; }
.science-preview-section h6 { font-size: 0.75rem; font-weight: 700; color: #10b981; margin-bottom: 0.4rem; }
.science-preview-section p { font-size: 0.78rem; color: #374151; margin-bottom: 0.25rem; line-height: 1.4; }

/* Art preview in daily card */
.art-preview-section { margin-bottom: 1rem; padding: 0.75rem; background: #fdf4ff; border-radius: 8px; border: 1px solid #f0abfc; }
.art-preview-section h6 { font-size: 0.75rem; font-weight: 700; color: #d946ef; margin-bottom: 0.4rem; }
.art-preview-section p { font-size: 0.78rem; color: #374151; margin-bottom: 0.25rem; line-height: 1.4; }

.btn-khan { background: #1d8a4b; border-color: #1d8a4b; color: white; font-size: 0.8rem; }
.btn-khan:hover { background: #166534; border-color: #166534; color: white; }
.btn-khan-practice { background: #1565c0; border-color: #1565c0; color: white; font-size: 0.8rem; }
.btn-khan-practice:hover { background: #0d47a1; border-color: #0d47a1; color: white; }
.btn-mrj  { background: #ef4444; border-color: #ef4444; color: white; font-size: 0.8rem; }
.btn-mrj:hover { background: #dc2626; border-color: #dc2626; color: white; }
.btn-ixl  { background: #f97316; border-color: #f97316; color: white; font-size: 0.8rem; }
.btn-ixl:hover { background: #ea6f0f; border-color: #ea6f0f; color: white; }

/* ── Activity Completion ─────────────────────────────────── */
.activity-completion-section .form-check-label { font-size: 0.95rem; cursor: pointer; }
.activity-completion-section .form-check-input { width: 1.1rem; height: 1.1rem; cursor: pointer; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-section h1 { font-size: 1.4rem; }
    .header-section h2 { font-size: 1.1rem; }
    .week-navigation { flex-direction: column; gap: 0.5rem; }
    .daily-cards-grid { grid-template-columns: 1fr; }
    .calendar-grid { grid-template-columns: 70px repeat(4, 1fr); }
}
