/* assets/style.css - Desktop-First Quiz Design */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #d32f2f;
    text-decoration: none;
    font-family: Arial, sans-serif;
    display: inline-block;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: #b71c1c;
}

/* Main Container - Desktop Optimized */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}

/* Article Header */
.article-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: normal;
    color: #000;
    letter-spacing: -0.5px;
}

.article-meta {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.author {
    font-weight: bold;
    color: #333;
}

/* Start Screen Layout */
#startScreen {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Quiz Image - Optimized for Desktop */
.quiz-image {
    text-align: center;
    margin: 0;
}

.quiz-image img {
    width: 100%;
    max-width: 720px;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.quiz-caption {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #666;
    margin-top: 12px;
    font-style: italic;
}

/* Introduction Text */
.quiz-intro {
    font-size: 19px;
    line-height: 1.65;
    color: #333;
    max-width: 720px;
    margin: 0 auto;
}

.quiz-intro p {
    margin-bottom: 18px;
}

.quiz-intro p:last-child {
    margin-bottom: 0;
}

/* Start Button Container - More Prominent */
.start-button-container {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 36px;
    text-align: center;
    margin: 8px auto 0;
    max-width: 600px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.start-button-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.button-pretext {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.start-button {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 22px 72px;
    font-size: 24px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1.2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.start-button:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

.start-button:active {
    transform: translateY(0);
}

/* Quiz Container */
.quiz-container {
    display: none;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.question-header {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.question-text {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 32px;
    color: #000;
}

/* Answer Options */
.answer-option {
    background: white;
    border: 2px solid #ddd;
    padding: 18px 24px;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.answer-option:hover {
    background: #f8f8f8;
    border-color: #999;
    transform: translateX(4px);
}

.answer-option input[type="radio"] {
    margin-right: 18px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.answer-option.selected {
    background: #e8f5e9;
    border-color: #4caf50;
}

.answer-option.correct {
    background: #e8f5e9;
    border-color: #4caf50;
    font-weight: bold;
}

.answer-option.wrong {
    background: #ffebee;
    border-color: #f44336;
}

/* Answer Feedback */
.answer-feedback {
    margin-top: 24px;
    padding: 18px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    display: none;
    border-radius: 4px;
}

.answer-feedback.correct {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.answer-feedback.wrong {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Next Button */
.next-button {
    margin-top: 24px;
    background: #333;
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    display: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.next-button:hover {
    background: #555;
}

.next-button.show {
    display: inline-block;
}

.progress-indicator {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #666;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* Results Container */
.results-container {
    display: none;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 48px;
    margin: 32px 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.score-display {
    font-size: 64px;
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
}

.score-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 36px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-title {
    font-size: 32px;
    margin-bottom: 24px;
    color: #000;
}

.result-description {
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.retake-button {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 17px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    margin-right: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.retake-button:hover {
    background: #b71c1c;
}

/* Share Section */
.share-results {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid #e0e0e0;
}

.share-text {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn {
    padding: 12px 32px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    margin: 0 6px;
    font-family: Arial, sans-serif;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 16px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #333;
    text-decoration: underline;
}

/* Tablet Styles (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 32px 32px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .quiz-image img {
        max-height: 380px;
    }
    
    .start-button {
        padding: 20px 60px;
        font-size: 22px;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .container {
        padding: 24px 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .quiz-image img {
        max-height: 280px;
    }
    
    .quiz-intro {
        font-size: 17px;
    }
    
    .start-button-container {
        padding: 28px 24px;
    }
    
    .start-button {
        padding: 18px 48px;
        font-size: 20px;
    }
    
    .question-text {
        font-size: 22px;
    }
    
    .answer-option {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .score-display {
        font-size: 48px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    .quiz-image img {
        max-height: 240px;
    }
    
    .quiz-intro {
        font-size: 16px;
    }
    
    .start-button {
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .question-text {
        font-size: 19px;
    }
    
    .answer-option {
        font-size: 15px;
    }
}

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 960px;
        padding: 48px 48px;
    }
    
    h1 {
        font-size: 48px;
    }
    
    .quiz-image img {
        max-height: 480px;
    }
    
    .quiz-intro {
        font-size: 21px;
    }
    
    .start-button {
        font-size: 26px;
        padding: 24px 80px;
    }
}