/* Google Cloud Digital Leader Quiz - Modern Design */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #131729;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --accent-blue: #4285f4;
    --accent-cyan: #34a853;
    --accent-gradient: linear-gradient(135deg, #4285f4, #34a853, #0f9d58);
    --success: #34a853;
    --error: #ea4335;
    --warning: #fbbc04;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at top left, rgba(66, 133, 244, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(52, 168, 83, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(66, 133, 244, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(66, 133, 244, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    border-color: rgba(66, 133, 244, 0.4);
    background: rgba(66, 133, 244, 0.15);
}

.info-icon {
    font-size: 1.5rem;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.info-text span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Button Styles */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Quiz Screen */
.quiz-header {
    margin-bottom: 2rem;
}

.quiz-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.multiple-choice-hint {
    background: rgba(251, 188, 4, 0.15);
    border: 1px solid rgba(251, 188, 4, 0.3);
    color: var(--warning);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Options */
.module-badge {
    background: rgba(66, 133, 244, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(66, 133, 244, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
}

.option input[type="radio"],
.option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.option input[type="radio"]:checked~label,
.option input[type="checkbox"]:checked~label {
    color: var(--accent-blue);
    font-weight: 600;
}

.option:has(input:checked) {
    background: rgba(66, 133, 244, 0.15);
    border-color: var(--accent-blue);
}

.option label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.quiz-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Results Screen */
.score-container {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(66, 133, 244, 0.4);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 0;
}

.score-number,
.score-percentage {
    position: relative;
    z-index: 1;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.score-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.performance {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0;
}

.performance.excellent {
    color: var(--success);
}

.performance.good {
    color: var(--accent-cyan);
}

.performance.average {
    color: var(--warning);
}

.performance.needs-improvement {
    color: var(--error);
}

.results-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-glass), transparent);
    margin: 2.5rem 0;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Results Details */
.results-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid;
}

.result-item.correct {
    border-left-color: var(--success);
    background: rgba(52, 168, 83, 0.05);
}

.result-item.incorrect {
    border-left-color: var(--error);
    background: rgba(234, 67, 53, 0.05);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.result-number {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-status {
    font-weight: 600;
    font-size: 0.9rem;
}

.result-item.correct .result-status {
    color: var(--success);
}

.result-item.incorrect .result-status {
    color: var(--error);
}

.result-question {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.user-answer,
.correct-answer,
.explanation {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.user-answer {
    color: var(--text-secondary);
}

.correct-answer {
    color: var(--success);
}

.explanation {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Footer */
footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer p {
    margin: 0.25rem 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.screen {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .logo {
        font-size: 3rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .score-circle {
        width: 160px;
        height: 160px;
    }

    .score-number {
        font-size: 2rem;
    }

    .score-percentage {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.25rem;
    }

    .card h2 {
        font-size: 1.25rem;
    }

    .option {
        padding: 1rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}