/* Quiz Page Styles - shadcn Design System */

.quiz-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.quiz-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
}

.quiz-page > * {
    position: relative;
    z-index: 1;
}

/* Main Content */
.quiz-main {
    flex: 1;
    padding: 5rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hidden { display: none !important; }

/* Header */
.quiz-page .header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-back {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--foreground);
}

.lang-select {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Intro Screen */
.quiz-intro {
    text-align: center;
    padding: 2rem 0;
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.quiz-intro h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.quiz-intro h1 .gradient-text {
    background: linear-gradient(135deg, var(--rose), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-features {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 2rem auto;
}

.quiz-features li {
    padding: 0.625rem 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-features li::before {
    content: "✓";
    color: var(--teal);
    font-weight: 600;
}

.social-proof {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin: 1.5rem 0;
}

.social-proof strong {
    color: var(--rose);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Buttons */
.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--rose), var(--teal));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
    font-family: inherit;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.3);
}

/* SEO Content */
.seo-content {
    text-align: left;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.seo-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--foreground);
}

.seo-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--rose);
}

.seo-content p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.seo-content ul {
    color: var(--muted-foreground);
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.seo-content strong {
    color: var(--foreground);
}

/* Quiz Container */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--secondary);
    border-radius: 9999px;
    overflow: hidden;
}

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

.progress-text {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Question Block */
.question-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--foreground);
}

/* Answers */
.answers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answer-option {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.answer-option:hover {
    border-color: var(--rose);
    background: rgba(244, 63, 94, 0.05);
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option.selected {
    border-color: var(--teal);
    background: rgba(20, 184, 166, 0.1);
}

.answer-text {
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.btn-next {
    background: linear-gradient(135deg, var(--rose), var(--teal));
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    width: 100%;
    transition: all 0.2s;
    min-height: 48px;
    font-family: inherit;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

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

/* Loading Screen */
.loading-screen {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-screen h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.loading-screen p {
    color: var(--muted-foreground);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--secondary);
    border-top: 3px solid var(--rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.quiz-result {
    text-align: center;
}

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

.result-score h2 {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--card);
    border: 6px solid var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    animation: fadeIn 0.5s ease;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--foreground);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.result-description {
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.result-description p {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.result-description h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem;
    color: var(--teal);
}

.result-description ul {
    list-style: none;
    padding: 0;
}

.result-description li {
    padding: 0.375rem 0;
    color: var(--muted-foreground);
}

/* Game Recommendation */
.game-recommendation {
    background: var(--card);
    border: 2px solid var(--rose);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.game-recommendation h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.game-recommendation p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-play-game {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--rose), var(--teal));
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-play-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.3);
}

/* Share Buttons */
.share-buttons {
    margin: 2rem 0;
    text-align: center;
}

.share-buttons h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.share-btns {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-share {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share:hover {
    transform: translateY(-2px);
}

.btn-share.facebook:hover { background: #1877f2; border-color: #1877f2; }
.btn-share.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.btn-share.whatsapp:hover { background: #25d366; border-color: #25d366; }
.btn-share.telegram:hover { background: #0088cc; border-color: #0088cc; }
.btn-share.copy:hover { background: var(--muted-foreground); }

/* FAQ */
.faq {
    margin: 2rem 0;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-item h4 {
    font-size: 1rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.6;
}

/* Footer */
.quiz-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--rose);
}

.footer-links span {
    color: var(--border);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.footer-copy .logo-text {
    background: linear-gradient(135deg, var(--rose), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Mobile Responsive - Ultra Compact Quiz UX */
@media (max-width: 640px) {
    /* Header - compact */
    .quiz-page .header {
        padding: 0;
    }

    .quiz-page .header-content {
        padding: 0.5rem 0.75rem;
    }

    .quiz-page .logo {
        font-size: 1.125rem;
    }

    .quiz-main {
        padding: 2.75rem 0.5rem 0.5rem;
    }

    /* Intro - compact */
    .quiz-intro {
        padding: 0.5rem 0;
    }

    .quiz-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .quiz-intro h1 {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
        line-height: 1.25;
    }

    .quiz-features {
        margin: 0.75rem auto;
    }

    .quiz-features li {
        padding: 0.25rem 0;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .social-proof {
        margin: 0.5rem 0;
        font-size: 0.8125rem;
    }

    .social-proof strong {
        font-size: 1.125rem;
    }

    .btn-start {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 40px;
    }

    /* Progress - minimal */
    .progress-container {
        margin-bottom: 0.5rem;
    }

    .progress-bar {
        height: 3px;
    }

    .progress-text {
        font-size: 0.6875rem;
        margin-top: 0.125rem;
    }

    /* Question block - minimal padding */
    .question-block {
        padding: 0.625rem;
        border-radius: 0.5rem;
        background: transparent;
        border: none;
    }

    .question-text {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
        line-height: 1.3;
        font-weight: 500;
    }

    /* Answers - ultra tight */
    .answers {
        gap: 0.25rem;
    }

    .answer-option {
        padding: 0.5rem 0.625rem;
        border-width: 1px;
        border-radius: 0.5rem;
    }

    .answer-text {
        font-size: 0.8125rem;
        line-height: 1.25;
    }

    /* Next button - always visible */
    .btn-next {
        margin-top: 0.5rem;
        padding: 0.5rem;
        min-height: 38px;
        font-size: 0.875rem;
        border-radius: 0.5rem;
    }

    /* Results - compact */
    .result-score {
        margin: 0.75rem 0;
    }

    .result-score h2 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .score-circle {
        width: 80px;
        height: 80px;
        border-width: 3px;
        margin: 0.5rem auto;
    }

    .score-number {
        font-size: 1.5rem;
    }

    .result-title {
        font-size: 1rem;
        margin: 0.375rem 0;
    }

    .result-description {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .result-description p {
        font-size: 0.8125rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .result-description h4 {
        font-size: 0.9375rem;
        margin: 0.75rem 0 0.375rem;
    }

    .result-description li {
        padding: 0.125rem 0;
        font-size: 0.8125rem;
    }

    /* Game recommendation - compact */
    .game-recommendation {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .game-recommendation h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }

    .game-recommendation p {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        line-height: 1.35;
    }

    .btn-play-game {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    /* Share - compact */
    .share-buttons {
        margin: 0.75rem 0;
    }

    .share-buttons h4 {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .btn-share {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    /* Loading - compact */
    .loading-screen {
        padding: 1.5rem 0.75rem;
    }

    .loading-spinner {
        width: 32px;
        height: 32px;
        margin-bottom: 0.75rem;
    }

    .loading-screen h3 {
        font-size: 0.9375rem;
    }

    .loading-screen p {
        font-size: 0.8125rem;
    }

    /* SEO content - compact */
    .seo-content {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .seo-content h2 {
        font-size: 1rem;
        margin: 1rem 0 0.5rem;
    }

    .seo-content h3 {
        font-size: 0.9375rem;
        margin: 0.75rem 0 0.375rem;
    }

    .seo-content p {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        line-height: 1.45;
    }

    .seo-content ul {
        margin: 0.375rem 0 0.625rem;
        padding-left: 1rem;
    }

    .seo-content li {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
        line-height: 1.35;
    }

    /* Footer - minimal */
    .quiz-footer {
        padding: 0.75rem 0.5rem;
    }

    .footer-links {
        gap: 0.5rem;
        margin-bottom: 0.375rem;
    }

    .footer-links a {
        font-size: 0.6875rem;
    }

    .footer-copy {
        font-size: 0.625rem;
    }

    /* Header nav */
    .btn-back {
        font-size: 0.75rem;
    }

    .btn-back .back-text {
        display: none;
    }

    .nav-right {
        gap: 0.375rem;
    }

    .nav-right .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        min-height: auto;
    }

    .lang-select {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* Small phones (iPhone SE, etc.) - extra compact */
@media (max-width: 375px) {
    .quiz-main {
        padding: 2.5rem 0.375rem 0.375rem;
    }

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

    .answer-text {
        font-size: 0.75rem;
    }

    .answer-option {
        padding: 0.375rem 0.5rem;
    }

    .btn-next {
        min-height: 36px;
        font-size: 0.8125rem;
    }
}

/* Tablet */
@media (min-width: 640px) {
    .quiz-main {
        padding: 5.5rem 1.5rem 2.5rem;
    }

    .quiz-intro h1 {
        font-size: 2.25rem;
    }

    .quiz-features {
        max-width: 500px;
    }

    .quiz-features li {
        font-size: 1.1rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .quiz-main {
        padding: 6rem 2rem 3rem;
        max-width: 900px;
    }

    .quiz-intro h1 {
        font-size: 2.5rem;
    }

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

    .answer-text {
        font-size: 1.125rem;
    }

    .question-block {
        padding: 2rem;
    }

    .seo-content h2 {
        font-size: 1.75rem;
    }

    .seo-content h3 {
        font-size: 1.375rem;
    }

    .seo-content p,
    .seo-content li {
        font-size: 1.0625rem;
    }
}
