/* ========================================
   Amy's Cybersecurity Study Plan - Styles
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --border: #e5e7eb;
    --sidebar-width: 280px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-overlay.hidden {
    display: none;
}

.password-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 360px;
    width: 90%;
}

.password-box h2 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.password-box > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.password-box form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.password-box input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

.password-box button {
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.password-box button:hover {
    background: var(--primary-dark);
}

.password-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

body.locked {
    overflow: hidden;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* ========================================
   Sidebar Navigation
   ======================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--text);
    color: white;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    padding: 1rem 0;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.nav-links li a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-links .nav-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

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

/* ========================================
   Main Content
   ======================================== */

.content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

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

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-card {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.info-card h3 {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}

.info-card p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.timeline-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.timeline-duration {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.timeline-content p:last-child {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Milestones */
.milestones {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.milestones h3 {
    margin-top: 0;
}

.milestones ul {
    list-style: none;
    margin: 0;
}

.milestones li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

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

/* Phase Headers */
.phase-header {
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.phase-header.phase-1 {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.phase-header.phase-2 {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.phase-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.phase-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Primary Resources */
.primary-resources {
    margin-top: 2rem;
}

.primary-resources h3 {
    color: white;
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.resource-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.resource-card {
    background: rgba(255,255,255,0.15);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.resource-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.resource-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.resource-card p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* Week Sections */
.week {
    background: white;
}

.week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.week-header h2 {
    margin-bottom: 0;
}

.week-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Objectives */
.objectives {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.objectives h3 {
    margin-top: 0;
    color: #166534;
}

.objectives ul {
    margin: 0;
    padding-left: 1.25rem;
}

.objectives li {
    padding: 0.25rem 0;
    color: #166534;
}

/* Day Blocks */
.day-block {
    margin-bottom: 1.5rem;
}

.day-block h3 {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    margin-bottom: 0;
}

/* Schedule Tables */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.schedule-table thead {
    background: var(--bg-secondary);
}

.schedule-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border);
}

.schedule-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    vertical-align: top;
}

.schedule-table td:first-child {
    white-space: nowrap;
    width: 80px;
    color: var(--text-light);
}

.schedule-table a {
    color: var(--primary);
    text-decoration: none;
}

.schedule-table a:hover {
    text-decoration: underline;
}

.schedule-table code {
    background: var(--bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8125rem;
}

/* Commands Block */
.commands-block,
.code-block {
    margin: 1.5rem 0;
}

.commands-block h3,
.code-block h3 {
    margin-bottom: 0.75rem;
}

pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
}

pre code {
    background: none;
    padding: 0;
}

/* Milestone Checklist */
.milestone-checklist {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.milestone-checklist h3 {
    margin-top: 0;
    color: #92400e;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #92400e;
}

.checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
}

/* Phase Complete */
.phase-complete {
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 2rem;
}

.phase-complete h3 {
    color: white;
    margin-top: 0;
}

.phase-complete p {
    margin: 0;
    opacity: 0.9;
}

/* Future Phases */
.future-phase {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.future-phase h3 {
    margin-top: 0;
    color: var(--primary);
}

.future-phase ul {
    margin: 0;
    padding-left: 1.25rem;
}

.future-phase li {
    padding: 0.25rem 0;
}

/* Detailed Future Phases */
.future-phase-detailed {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    overflow: hidden;
}

.future-phase-detailed > h3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
}

.future-phase-detailed .phase-goal {
    padding: 1rem 1.5rem;
    margin: 0;
    background: #f0f9ff;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.phase-week-group {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.phase-week-group:last-of-type {
    border-bottom: none;
}

.phase-week-group h4 {
    margin: 0 0 1rem;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.phase-topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .phase-topics-grid {
        grid-template-columns: 1fr;
    }
}

.phase-topic,
.phase-project {
    font-size: 0.9375rem;
}

.phase-topic strong,
.phase-project strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.875rem;
}

.phase-topic ul,
.phase-project ul {
    margin: 0;
    padding-left: 1.25rem;
}

.phase-topic li,
.phase-project li {
    padding: 0.2rem 0;
    color: var(--text);
}

.phase-topic code {
    background: var(--bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8125rem;
}

.phase-resources {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

.phase-resources strong {
    color: var(--text-light);
}

.phase-resources a {
    color: var(--primary);
    text-decoration: none;
}

.phase-resources a:hover {
    text-decoration: underline;
}

.cert-info-box {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem;
}

.cert-info-box h4 {
    margin: 0 0 0.75rem;
    color: #92400e;
    font-size: 1rem;
}

.cert-info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.cert-info-box li {
    padding: 0.2rem 0;
    color: #92400e;
}

/* Weekly Study Rhythm */
.schedule-rhythm {
    margin-top: 1.5rem;
}

.rhythm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.rhythm-table th {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.rhythm-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
}

.rhythm-table td:first-child {
    font-weight: 500;
    width: 120px;
    background: var(--bg-secondary);
}

.rhythm-table .break-row {
    background: #fef3c7;
}

.rhythm-table .break-row td:first-child {
    background: #fef3c7;
}

/* Support From Partner */
.support-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.support-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.support-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--primary);
}

.support-item p {
    margin: 0;
    color: var(--text);
    font-size: 0.9375rem;
}

.support-item.important {
    background: #fef3c7;
    border-color: #fcd34d;
}

.support-item.important h3 {
    color: #92400e;
}

/* Final Notes */
.final-notes-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.final-notes-content h3 {
    margin-top: 0;
    color: var(--text);
}

.final-notes-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.final-notes-content li {
    padding: 0.5rem 0;
    color: var(--text);
}

.encouragement {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    text-align: center;
}

.encouragement p {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Inline Explainer (expandable) */
.info-toggle {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 4px;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.info-toggle:hover {
    background: #bae6fd;
}

.info-toggle.open {
    background: #0369a1;
    color: white;
}

.inline-explainer {
    display: none;
    margin-top: 1rem;
}

.inline-explainer.open {
    display: block;
}

.explainer-content {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.explainer-content h4 {
    margin: 1rem 0 0.5rem;
    color: #0c4a6e;
    font-size: 0.9375rem;
}

.explainer-content h4:first-child {
    margin-top: 0;
}

.explainer-content p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text);
}

.explainer-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.explainer-content li {
    padding: 0.15rem 0;
    font-size: 0.875rem;
    color: var(--text);
}

.explainer-content a {
    color: var(--primary);
    text-decoration: none;
}

.explainer-content a:hover {
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* Practice Tasks */
.practice-tasks {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.practice-tasks > h3 {
    margin-top: 0;
    color: #166534;
}

.practice-tasks > p {
    color: #166534;
    margin-bottom: 1.5rem;
}

.task-group {
    background: white;
    border: 1px solid #dcfce7;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.task-group:last-of-type {
    margin-bottom: 1.5rem;
}

.task-group h4 {
    margin: 0 0 0.75rem;
    color: #166534;
    font-size: 0.9375rem;
}

.task-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.task-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0fdf4;
    font-size: 0.875rem;
    color: var(--text);
}

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

.task-checklist input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #16a34a;
    cursor: pointer;
}

.task-checklist li.completed {
    color: var(--text-light);
    text-decoration: line-through;
}

.task-checklist code {
    background: #fef3c7;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8125rem;
    color: #92400e;
}

/* Progress Bar */
.task-progress {
    background: white;
    border: 1px solid #dcfce7;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #166534;
    font-weight: 500;
}

/* AI Usage Section */
.principle-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.principle-box h3 {
    color: white;
    margin-top: 0;
}

.principle-box p {
    margin-bottom: 0.5rem;
}

.principle-box p:last-child {
    margin-bottom: 0;
    opacity: 0.9;
}

/* AI Table */
.ai-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.ai-table th,
.ai-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border);
}

.ai-table thead {
    background: var(--bg-secondary);
}

.ai-table th {
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.minimal {
    background: #fee2e2;
    color: #991b1b;
}

.badge.limited {
    background: #fef3c7;
    color: #92400e;
}

.badge.moderate {
    background: #dbeafe;
    color: #1e40af;
}

.badge.strategic {
    background: #d1fae5;
    color: #065f46;
}

/* AI Examples */
.ai-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.good-examples {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1.25rem;
    border-radius: var(--radius);
}

.good-examples h3 {
    color: #166534;
    margin-top: 0;
}

.good-examples ul {
    margin: 0;
    padding-left: 1.25rem;
}

.good-examples li {
    padding: 0.5rem 0;
    color: #166534;
    font-size: 0.875rem;
}

.bad-examples {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1.25rem;
    border-radius: var(--radius);
}

.bad-examples h3 {
    color: #991b1b;
    margin-top: 0;
}

.bad-examples ul {
    margin: 0;
    padding-left: 1.25rem;
}

.bad-examples li {
    padding: 0.5rem 0;
    color: #991b1b;
    font-size: 0.875rem;
}

.ai-test {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--radius);
}

.ai-test h3 {
    margin-top: 0;
}

.ai-test ul {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

/* Resource Tables */
.resource-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.875rem;
}

.resource-table th,
.resource-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border);
}

.resource-table thead {
    background: var(--bg-secondary);
}

.resource-table th {
    font-weight: 600;
}

.resource-table a {
    color: var(--primary);
    text-decoration: none;
}

.resource-table a:hover {
    text-decoration: underline;
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.footer p:first-child {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer ul {
    margin: 0 0 2rem;
    padding-left: 1.25rem;
}

.footer li {
    padding: 0.25rem 0;
    color: var(--text-light);
}

.footer-note {
    font-size: 1.5rem;
    text-align: center;
    margin: 2rem 0;
    color: var(--primary);
}

.footer-meta {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========================================
   Phase Accordion
   ======================================== */

.phase-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phase-accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
}

.phase-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.phase-accordion-header:hover {
    background: #f3f4f6;
}

.phase-marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.phase-info {
    flex: 1;
}

.phase-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.phase-duration {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.phase-toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}

.phase-toggle-icon::before,
.phase-toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--text-light);
    transition: transform 0.3s ease;
}

.phase-toggle-icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.phase-toggle-icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.phase-accordion-header[aria-expanded="true"] .phase-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.phase-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.phase-accordion-content.open {
    max-height: 500px;
    padding: 1rem 1.25rem 1.25rem;
}

.phase-summary {
    margin: 0 0 1rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.phase-topics {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.phase-topics li {
    padding: 0.25rem 0;
    color: var(--text);
}

.phase-topics li strong {
    color: var(--text-light);
}

.phase-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.phase-link:hover {
    text-decoration: underline;
}

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

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

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

    .menu-toggle {
        display: flex;
    }

    .content {
        margin-left: 0;
    }

    .hero {
        padding: 3rem 1.5rem;
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .schedule-table {
        font-size: 0.8125rem;
    }

    .schedule-table td:first-child {
        width: 60px;
    }

    .ai-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .week-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .resource-cards {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .menu-toggle {
        display: none;
    }

    .content {
        margin-left: 0;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: var(--text-light);
    }
}
