/* 2MGEN Underground Utilities Quiz - Conference Booth Display */

:root {
    --primary-navy: #2b3f5c;
    --primary-white: #ffffff;
    --accent-red: #dc2626;
    --text-light: #e5e7eb;
    --text-gray: #6b7280;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --background-dark: #1f2937;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--background-dark) 100%);
    color: var(--primary-white);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo Header */
.logo-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.logo {
    display: inline-block;
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--primary-white);
}

.logo-accent {
    color: var(--accent-red);
    font-size: 2.5rem;
    vertical-align: middle;
}

.company-name {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Screen Management */
.screen {
    display: none;
    flex: 1;
    animation: fadeIn 0.6s ease-in-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Intro Screen */
.fire-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-white), var(--text-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.challenge-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.challenge-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.stats {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--warning-orange);
}

.disruption {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tagline {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
}

.target-section {
    margin: 2rem 0;
}

.target-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.target-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-red);
}

.prize-box {
    background: linear-gradient(135deg, var(--accent-red), #b91c1c);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.prize-box h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.timer {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.warning {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.9;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

#email-input {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 3px solid var(--accent-red);
    border-radius: 12px;
    background: var(--primary-white);
    color: var(--primary-navy);
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

#email-input::placeholder {
    color: var(--text-gray);
    font-weight: 600;
}

#email-input:focus {
    border-color: var(--warning-orange);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

.start-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.spoiler {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.8;
}

/* Quiz Screen */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--warning-orange));
    transition: width 0.3s ease;
    width: 0%;
}

.question-counter {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 2rem;
    white-space: nowrap;
}

.timer-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-green);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
}

.timer-display.warning {
    color: var(--error-red);
    animation: timerWarning 1s infinite;
}

@keyframes timerWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.question-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 3rem;
}

#question-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.answers {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-btn {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.answer-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.answer-btn.selected {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

.answer-btn.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success-green);
    animation: correctAnswer 0.6s ease;
}

.answer-btn.incorrect {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error-red);
    animation: incorrectAnswer 0.6s ease;
}

@keyframes correctAnswer {
    0% { background: rgba(16, 185, 129, 0.2); }
    50% { background: rgba(16, 185, 129, 0.4); }
    100% { background: rgba(16, 185, 129, 0.2); }
}

@keyframes incorrectAnswer {
    0% { background: rgba(239, 68, 68, 0.2); }
    50% { background: rgba(239, 68, 68, 0.4); }
    100% { background: rgba(239, 68, 68, 0.2); }
}

.next-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-red), #b91c1c);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Results Screen */
.result-winner, .result-standard {
    text-align: center;
    margin-bottom: 3rem;
}

.trophy {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.result-winner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-green);
    margin-bottom: 1rem;
}

.result-standard h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--warning-orange);
    margin-bottom: 1rem;
}

.score-display {
    margin: 2rem 0;
}

.score-big {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-white);
}

.score-perfect {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-green);
    margin-top: 0.5rem;
}

.score-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.winner-message, .feedback, .learn-more {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.winner-message p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.email-display {
    color: var(--accent-red);
    font-weight: 600;
}

.next-steps h3, .learn-more h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.explanations {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.explanations h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    text-align: center;
}

.explanation-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.question-mini {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--warning-orange);
    margin-bottom: 0.5rem;
}

.explanation-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
}

.restart-section {
    text-align: center;
    margin-top: 3rem;
}

.restart-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .logo-accent {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .challenge-box, .prize-box {
        padding: 1.5rem;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .progress-bar {
        margin-right: 0;
        order: 3;
        width: 100%;
    }
    
    .question-counter, .timer-display {
        margin-right: 0;
    }
    
    #question-text {
        font-size: 1.5rem;
    }
    
    .answer-btn {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .result-winner h1, .result-standard h1 {
        font-size: 1.8rem;
    }
    
    .score-big {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .fire-emoji {
        font-size: 3rem;
    }
    
    .target-icon {
        font-size: 2.5rem;
    }
    
    .trophy {
        font-size: 4rem;
    }
}