/* ── Share Page Styles ── */
/* Extends premium.css — uses the same CSS variables */

/* ── Quiz Container ── */
.challenge-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Progress Bar ── */
.quiz-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--grad-ai);
    border-radius: 50px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
}

/* ── Question Card ── */
.question-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    animation: fadeSlideIn 0.4s ease;
}

.question-number {
    font-size: 0.85rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ── Options ── */
.options-grid {
    display: grid;
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.option-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.option-marker {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.option-btn:hover:not(.disabled) .option-marker {
    background: var(--brand-primary);
    color: white;
}

.option-btn.correct {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10B981;
}

.option-btn.correct .option-marker {
    background: #10B981;
    color: white;
}

.option-btn.wrong {
    background: rgba(239, 68, 68, 0.12);
    border-color: #EF4444;
}

.option-btn.wrong .option-marker {
    background: #EF4444;
    color: white;
}

.option-btn.disabled {
    cursor: default;
    opacity: 0.6;
}

.option-btn.correct.disabled,
.option-btn.wrong.disabled {
    opacity: 1;
}

/* ── Explanation ── */
.explanation-box {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: fadeSlideIn 0.3s ease;
}

.explanation-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.next-btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.9rem;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

.next-btn:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 37, 37, 0.4);
}

/* ── Result Screen ── */
.result-screen {
    text-align: center;
    animation: fadeSlideIn 0.5s ease;
}

.result-header {
    margin-bottom: 2.5rem;
}

.result-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

/* ── Canvas Card Preview ── */
.card-preview-wrapper {
    margin: 2rem auto;
    max-width: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-preview-wrapper canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Share Buttons ── */
.share-section {
    margin-top: 2.5rem;
}

.share-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-btn i {
    font-size: 1.2rem;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #20c05c;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

.share-btn.telegram {
    background: #0088CC;
}

.share-btn.telegram:hover {
    background: #0077b5;
}

.share-btn.copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
}

.share-btn.copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-btn.download {
    background: var(--brand-accent);
}

.share-btn.download:hover {
    background: #5558e6;
}

/* ── Round 2 Locked Teaser ── */
.round2-teaser {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.round2-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 37, 37, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    pointer-events: none;
}

.round2-teaser .lock-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.round2-teaser h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.round2-teaser p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.round2-unlocked {
    border-style: solid;
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.round2-unlocked::before {
    background: rgba(16, 185, 129, 0.03);
}

/* ── CTA Section ── */
.cta-muon {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.cta-muon-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.cta-muon-text strong {
    color: var(--text-primary);
}

/* ── Toast ── */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-surface-2);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ── Welcome Screen ── */
.welcome-screen {
    text-align: center;
    animation: fadeSlideIn 0.5s ease;
}

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

.welcome-screen h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.welcome-screen p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 0.5rem;
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.welcome-feature i {
    color: var(--brand-primary);
}

.start-btn {
    padding: 1rem 3rem;
    background: var(--grad-brand);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(217, 37, 37, 0.4);
    margin-top: 1rem;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(217, 37, 37, 0.5);
}

/* ── Done-for-today state ── */
.done-today {
    text-align: center;
    padding: 3rem 0;
    animation: fadeSlideIn 0.5s ease;
}

.done-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

/* ── Animations ── */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .question-card {
        padding: 1.5rem 1.25rem;
    }

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

    .option-btn {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .result-title {
        font-size: 1.5rem;
    }

    .card-preview-wrapper {
        max-width: 320px;
    }

    .cta-muon {
        flex-direction: column;
        text-align: center;
    }

    .welcome-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}