/* Crypto Quiz Widget Styles */

/* ========== Container ========== */
.crypto-quiz {
    margin: 2rem 0;
    max-width: 640px;
}

/* ========== Screens ========== */
.cq-screen {
    background: #f8f9fb;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e6ee;
}

/* ========== Animations ========== */
@keyframes cqSlideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cqSlideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cqPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.cq-slide-in-right {
    animation: cqSlideInRight 0.2s ease-out;
}

.cq-slide-in-left {
    animation: cqSlideInLeft 0.2s ease-out;
}

/* ========== Start Screen ========== */
.cq-start {
    text-align: center;
}

.cq-start__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.cq-start__subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.cq-start__desc {
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

/* ========== Buttons ========== */
.cq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.cq-btn:active {
    transform: scale(0.97);
}

.cq-btn--start {
    background: #3b82f6;
    color: #fff;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.cq-btn--start:hover {
    background: #2563eb;
}

.cq-btn--back {
    background: none;
    color: #6b7280;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.cq-btn--share {
    background: #3b82f6;
    color: #fff;
    padding: 0.75rem 1.5rem;
}

.cq-btn--retry {
    background: #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.5rem;
}

/* ========== Progress Bar ========== */
.cq-progress {
    position: relative;
    background: #e5e7eb;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

.cq-progress__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.cq-progress__text {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ========== Question ========== */
.cq-question__text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0 0 1.25rem;
}

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

.cq-answer {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.875rem 1.125rem;
    background: #fff;
    border: 2px solid #e2e6ee;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    line-height: 1.4;
}

.cq-answer:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cq-answer--selected {
    border-color: #3b82f6;
    background: #dbeafe;
    animation: cqPulse 0.15s;
}

/* ========== Result ========== */
.cq-result__type {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.cq-result__emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.cq-result__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.cq-result__desc {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
    text-align: center;
}

.cq-result__section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 1.25rem 0 0.5rem;
}

/* ========== Learning Path ========== */
.cq-path {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: decimal;
}

.cq-path li {
    padding: 0.25rem 0;
}

.cq-path a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.cq-path a:hover {
    text-decoration: underline;
}

/* ========== Channels ========== */
.cq-channels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cq-channel {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========== Actions ========== */
.cq-result__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Mobile (max-width: 480px) ========== */
@media (max-width: 480px) {
    .cq-screen {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .cq-start__title {
        font-size: 1.25rem;
    }

    .cq-question__text {
        font-size: 1.125rem;
    }

    .cq-result__title {
        font-size: 1.5rem;
    }

    .cq-result__emoji {
        font-size: 3rem;
    }

    .cq-result__actions {
        flex-direction: column;
    }

    .cq-result__actions .cq-btn {
        width: 100%;
    }
}
