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

:root {
    /* ShadCN-inspired neutral colors */
    --primary-color: #18181b;
    --primary-hover: #27272a;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #09090b;
    --text-secondary: #71717a;
    --text-muted: #a1a1aa;
    --bg: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-muted: #fafafa;
    --border-color: #e4e4e7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nav-width: 280px;
    --radius: 8px;
    --radius-sm: 6px;
}

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

/* Navigation Sidebar */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.nav-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-header h2 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

.lang-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
}

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

.nav-link {
    display: block;
    padding: 0.625rem 1rem;
    margin: 0.125rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius);
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

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

/* Main Content */
.main-content {
    margin-left: var(--nav-width);
    padding: 2rem;
    max-width: 900px;
}

/* Hero Section */
.hero {
    background: var(--bg);
    color: var(--text-primary);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-badge {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Module Sections */
.module {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    scroll-margin-top: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.module:hover {
    border-color: var(--accent-color);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.module-number {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.module-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: auto;
}

.module h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    flex: 1;
    font-weight: 600;
}

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

.module h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

/* Content Cards */
.content-card {
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-card p {
    margin-bottom: 1rem;
}

.content-card ul {
    margin: 1rem 0 1rem 1.5rem;
}

.content-card li {
    margin-bottom: 0.5rem;
}

.intro-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
}

.large-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Highlight Boxes */
.highlight {
    background: var(--bg-muted);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-weight: 500;
    margin: 1.5rem 0;
    border-left: 3px solid var(--warning-color);
}

.takeaway {
    background: var(--bg-muted);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    border-left: 3px solid var(--success-color);
}

.tips-box {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.tips-box p {
    margin-bottom: 0.75rem;
}

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

.warning-box {
    background: var(--bg-muted);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
    border-left: 3px solid var(--danger-color);
}

.skeptical-box {
    background: var(--bg-muted);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
    border-left: 3px solid var(--accent-color);
}

.skeptical-box p {
    margin-bottom: 0.75rem;
}

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

.remember-box {
    background: var(--bg-muted);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
}

/* Rule of Three */
.rule-of-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.rule-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.rule-item:hover {
    border-color: var(--accent-color);
}

.rule-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rule-item h3 {
    font-size: 1.125rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.rule-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

/* Visual Signs */
.visual-signs,
.audio-signs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.sign-card {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.sign-card:hover {
    border-color: var(--accent-color);
}

.sign-card h4 {
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

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

.sign-card li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.sign-card p {
    margin: 0;
    color: var(--text-dark);
}

/* Questions List */
.questions-list {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.question-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.question-card h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
}

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

/* Process Steps */
.process-steps {
    margin: 2rem 0;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.step-content p {
    margin: 0;
    color: var(--text-light);
}

/* Scam List */
.scam-list {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.scam-card {
    background: #fef2f2;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--danger-color);
}

.scam-card h4 {
    color: var(--danger-color);
    margin: 0 0 0.75rem 0;
}

.scam-card p {
    margin-bottom: 0.5rem;
}

.scam-tip {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

/* Safety Rules */
.safety-rules {
    margin: 1.5rem 0;
}

.safety-rule {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    align-items: flex-start;
}

.safety-rule .rule-icon {
    background: var(--secondary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
    margin: 0;
}

.safety-rule p {
    margin: 0;
}

/* Checklist */
.checklist {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.checklist h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
}

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

.checklist ul {
    margin: 0 0 0 1.5rem;
}

.checklist li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--bg);
    color: var(--text-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --nav-width: 250px;
    }

    .main-content {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5rem;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

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

    .subtitle {
        font-size: 1.1rem;
    }

    .module {
        padding: 1.5rem;
    }

    .module h2 {
        font-size: 1.5rem;
    }

    .module-time {
        margin-left: 0;
        width: 100%;
    }

    .rule-of-three {
        grid-template-columns: 1fr;
    }

    .visual-signs,
    .audio-signs {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
    }
}

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

    .hero-info {
        flex-direction: column;
    }

    .info-badge {
        width: 100%;
        text-align: center;
    }

    .module h2 {
        font-size: 1.35rem;
    }

    .content-card {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

    .main-content {
        margin-left: 0;
    }

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