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

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent: #4a9eff;
    --accent-hover: #5fb0ff;
    --success: #4caf50;
    --error: #f44336;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(26, 26, 26, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(5px);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.quiz-container {
    background: rgba(26, 26, 26, 0.85);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(5px);
}

.quote-section {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.1);
}

.quote-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.quote-content {
    flex: 1;
}

.quote-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-align: right;
    transition: opacity 0.3s ease;
}

.quiz-header {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 15px;
}

.score-summary {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.score-summary span {
    margin: 0 3px;
}

#correctCount {
    color: var(--success);
}

#incorrectCount {
    color: var(--error);
}

.questions-container {
    margin-bottom: 30px;
}

.question-card {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.2);
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 50px;
}

.option:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
    pointer-events: none;
}

.option label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    pointer-events: none;
    display: flex;
    align-items: center;
    min-height: 20px;
}

.option.selected {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.1);
}

.option.correct {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.15);
}

.option.incorrect {
    border-color: var(--error);
    background: rgba(244, 67, 54, 0.15);
}

.explanation {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: none;
}

.explanation.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.feedback {
    margin-top: 10px;
    font-weight: 600;
    display: none;
}

.feedback.show {
    display: block;
}

.feedback.correct {
    color: var(--success);
}

.feedback.incorrect {
    color: var(--error);
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.quiz-controls .btn-download {
    background: var(--accent);
    color: white;
    margin-top: 0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.btn-check {
    background: var(--success);
    color: white;
}

.btn-check:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-download {
    background: var(--accent);
    color: white;
    margin-top: 20px;
}

.btn-download:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.results-actions {
    margin-top: 20px;
    text-align: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-summary {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--accent);
}

.results-summary h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
}

.score-label {
    color: var(--text-secondary);
}

.score-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 2rem;
}

.site-footer {
    margin-top: 60px;
    padding: 40px 20px 20px;
    background: rgba(26, 26, 26, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(5px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.footer-section h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.social-share {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
    opacity: 0.9;
}

.social-btn.tiktok {
    background: #000000;
}

.social-btn.tiktok:hover {
    background: #161823;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.footer-domain {
    text-align: center;
    padding: 25px 20px;
    border-top: 2px solid var(--border);
    margin-top: 30px;
}

.footer-domain p {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .quiz-container {
        padding: 20px;
    }

    .question-card {
        padding: 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .quiz-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .quiz-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section {
        padding: 15px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-domain p {
        font-size: 1.2rem;
    }

    .social-share {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
        min-width: auto;
    }
}

