/* Teaser Section (Warning) */
.teaser-section {
    max-width: 800px;
    margin: 2rem auto 0;
    background: rgba(239, 68, 68, 0.05);
    /* Red tint */
    border: 1px solid var(--color-critical);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.teaser-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--color-critical);
}

.teaser-title {
    color: var(--color-critical);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.teaser-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.teaser-link {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-critical);
    transition: all 0.2s;
}

.teaser-link:hover {
    color: var(--color-critical);
}

/* Article Page styles */
.article-header h1 {
    font-family: 'Outfit', sans-serif;
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
}

/* Header Actions */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: transparent;
}

.btn-outline-light:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.nav-btn i {
    margin-right: 0.3rem;
}

/* Tooltip Styling */
.tooltip-box {
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    /* Low opacity purple */
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tooltip-icon {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.tooltip-text {
    color: var(--text-main);
    font-weight: 500;
}

/* Form Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: white;
}

/* Footer & Animations */
.main-footer {
    background-color: #020617;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 2fr;
    }
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    /* Color Palette - Dark Cyber Theme */
    --primary-color: #6A3A98;
    /* Royal Purple */
    --primary-dark: #3D2E7C;
    /* Deep Violet */
    --accent-color: #8B5CF6;
    /* Lighter Purple for hovers */

    --bg-color: #020617;
    /* Very Dark Navy/Black */
    --card-bg: #0F172A;
    /* Slate 900 */
    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --border-color: #1E293B;
    /* Slate 800 */

    /* Code/Cyber Accents */
    --code-green: #10B981;
    --cyber-glow: 0 0 20px rgba(106, 58, 152, 0.3);

    /* Threat Levels - Adjusted for Dark Mode */
    --color-critical: #EF4444;
    --color-high: #F97316;
    --color-moderate: #EAB308;
    --color-good: #22C55E;

    /* Spacing & Radius */
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Cyber Background Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(106, 58, 152, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106, 58, 152, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* Subtle code rain effect overlay (static abstract) */
body::after {
    content: "0101 10 01 001 00 1 01 1010 011";
    position: fixed;
    top: 10%;
    right: 5%;
    font-family: 'Courier New', monospace;
    opacity: 0.03;
    font-size: 4rem;
    color: var(--primary-color);
    z-index: -2;
    writing-mode: vertical-rl;
    white-space: nowrap;
    overflow: hidden;
    height: 80vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Header */
.main-header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(106, 58, 152, 0.5);
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 102;
    /* Above menu */
}

.logo:hover {
    opacity: 0.8;
}

.logo i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 102;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-actions {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

        /* Modern Reveal */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .header-actions.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Layout */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.screen {
    background-color: transparent;
    width: 100%;
    max-width: 800px;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

.content-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--cyber-glow);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative line top */
.content-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent-color), var(--primary-dark));
}

/* Intro Screen */
.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

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

@media (min-width: 600px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.info-item i {
    font-size: 1.75rem;
    color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.intro-text {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(106, 58, 152, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 58, 152, 0.6);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(106, 58, 152, 0.2);
    box-shadow: 0 0 15px rgba(106, 58, 152, 0.3);
}

/* Quiz Screen */
.quiz-header {
    margin-bottom: 1.5rem;
}

.progress-container {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.question-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.question-area {
    text-align: left;
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.options-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-btn:hover {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.option-btn.selected {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.option-btn .opt-letter {
    background: var(--border-color);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.option-btn.selected .opt-letter {
    background: var(--accent-color);
    color: white;
}

.unsure-option {
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Modal / Form Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group input:not([type="checkbox"]),
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    transition: all 0.2s;
}

.form-group input:not([type="checkbox"]):focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: left;
    background: rgba(2, 6, 23, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
}

/* Result Screen */
.result-box {
    text-align: center;
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.chart-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(106, 58, 152, 0.2));
}

.score-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.score-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--border-color);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.status-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.recommendation {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cta-section {
    background: rgba(106, 58, 152, 0.1);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 500px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.area-scores {
    text-align: left;
}

.area-item {
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
}

.area-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.area-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.area-bar-fill {
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}