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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.login-title {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 2rem;
    font-weight: 700;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#password-input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#password-input:focus {
    outline: none;
    border-color: #667eea;
}

#login-button {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 1.2rem;
}

.error-message.shake {
    animation: error-shake 280ms ease-in-out;
}

@keyframes error-shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.captcha-container {
    margin-top: 1.25rem;
    text-align: left;
}

.captcha-question {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.captcha-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.captcha-option {
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.75rem 0.7rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.captcha-option:hover {
    border-color: #667eea;
}

.captcha-option.selected {
    border-color: #667eea;
    background: #eef1ff;
    color: #2f3f9d;
    font-weight: 600;
}

.captcha-continue-button {
    margin-top: 0.9rem;
    width: 100%;
    padding: 0.85rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.captcha-continue-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Blog Screen */
.blog-container {
    background: white;
    min-height: 100vh;
    width: 100%;
}

.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.blog-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-nav {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-button {
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.nav-button:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.nav-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.main-content {
    flex: 1;
}

.content-section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item[data-read="true"] {
    border-left-color: #27ae60;
    background: #e8f5e9;
}

.special-news {
    border-left-color: #c0392b;
}

.locked-news {
    background: #fff8f3;
}

.special-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.65rem;
    background: #c0392b;
    color: white;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-item h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-button {
    padding: 0.5rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.read-button:hover {
    background: #5568d3;
}

/* Truth Section */
.truth-message {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border-radius: 10px;
    border: 2px solid #ffc107;
}

.video-container {
    position: relative;
    margin: 2rem 0;
}

#truth-video {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-help {
    margin-top: 0.75rem;
    max-width: 280px;
    color: #555;
    font-size: 0.85rem;
}

.video-help summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    background: white;
    border: 1px solid #d8dbe5;
    border-radius: 999px;
    color: #333;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    list-style: none;
}

.video-help summary::-webkit-details-marker {
    display: none;
}

.video-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    background: #667eea;
    color: white;
    border-radius: 50% 50% 50% 0;
    font-size: 0.85rem;
    line-height: 1;
}

.video-help-content {
    margin-top: 0.55rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #d8dbe5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.video-help-content p {
    margin-bottom: 0.6rem;
    color: #333;
    line-height: 1.35;
}

.video-help-content a {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: #667eea;
    color: white;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
}

.video-help-content a:hover {
    background: #5568d3;
}

.choice-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pill-button {
    padding: 1.5rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.pill-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pill-button.blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.pill-button.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.pill-icon {
    font-size: 1.5rem;
}

/* Consequence Screen */
.consequence-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

#consequence-content {
    margin-bottom: 2rem;
}

.consequence-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.consequence-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.restart-button {
    padding: 1rem 2rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.restart-button:hover {
    background: #5568d3;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-content {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-button {
        flex: 1;
        min-width: 150px;
    }

    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pill-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

#modal-title {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    padding-right: 2rem;
}

#modal-body {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

#modal-body p {
    margin-bottom: 1rem;
}

.unlock-challenge {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.unlock-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.unlock-input:focus {
    outline: none;
    border-color: #667eea;
}

.unlock-button {
    align-self: flex-start;
    padding: 0.65rem 1.4rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.unlock-error {
    min-height: 1.2rem;
    color: #e74c3c;
    font-size: 0.95rem;
}
