﻿.quiz-compact {
    background: #ffffff;
    border: 1px solid #ddddde;
    border-radius: 16px;
    padding: 16px;
    margin: 32px 0;
}

.quiz-header-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

    .quiz-header-compact i {
        font-size: 22px;
        color: #3498db;
    }

    .quiz-header-compact h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
    }

.quiz-question-compact {
    background: #adedff34;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
    border-left: 5px solid #3498db;
}

    .quiz-question-compact p {
        margin: 0;
        font-size: 15px;
        line-height: 1.5;
        color: #34495e;
    }

.quiz-options-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opt {
    background: #ffffff;
    border: 1px solid #ddddde;
    border-radius: 16px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    color: #34495e;
    font-size: 14px;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

    .quiz-opt:hover:not(.disabled) {
        border-color: #3498db;
        background: #adedff34;
        transform: translateX(4px);
    }

    .quiz-opt.disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

.opt-letter {
    background: #3498db;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 13px;
}

.opt-text {
    flex: 1;
    line-height: 1.5;
}

.quiz-opt.correct {
    background: rgba(63, 212, 201, 0.15);
    border-color: #3fd4c9;
    animation: pulseCorrect 0.5s ease;
}

    .quiz-opt.correct .opt-letter {
        background: #3fd4c9;
    }

.quiz-opt.incorrect {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    animation: shakeIncorrect 0.4s ease;
}

    .quiz-opt.incorrect .opt-letter {
        background: #e74c3c;
    }

.quiz-result {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 4px;
    display: none;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

    .quiz-result.show {
        display: block;
    }

    .quiz-result.success {
        background: rgba(63, 212, 201, 0.15);
        border-left: 5px solid #36b6ad;
        color: #2c3e50;
    }

    .quiz-result.error {
        background: rgba(231, 76, 60, 0.1);
        border-left: 5px solid #c0392b;
        color: #2c3e50;
    }

.blockquote-interactive {
    position: relative;
    margin: 24px 0;
}

.blockquote-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.blockquote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: clip-path 0.1s linear, opacity 0.4s ease;
    clip-path: inset(0 0 0 0);
}

    .blockquote-overlay.unlocked {
        clip-path: inset(0 0 0 100%);
        pointer-events: none;
    }

.slider-container {
    width: 100%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.3) 100%);
    transition: width 0.05s linear;
    pointer-events: none;
}

.slider-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.5) 100% );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2.8s linear infinite;
    transition: opacity 0.3s ease;
}

    .slider-label.faded {
        opacity: 0;
    }

.slider-thumb {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ffffff 0%, #ededed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: left 0.05s linear, transform 0.2s ease, background 0.3s ease;
    z-index: 2;
    cursor: grab;
}

    .slider-thumb i {
        color: #3498db;
        font-size: 18px;
        transition: transform 0.3s ease;
    }

.slider-track:hover .slider-thumb,
.slider-track.active .slider-thumb {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.slider-track.active .slider-thumb {
    cursor: grabbing;
}

.slider-thumb.success {
    background: linear-gradient(135deg, #3fd4c9 0%, #36b6ad 100%);
    box-shadow: 0 4px 14px rgba(63, 212, 201, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

    .slider-thumb.success i {
        color: white;
        animation: checkPop 0.4s ease;
    }

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }

    60% {
        transform: scale(1.3) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.stars-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

    .stars-modal.show {
        display: flex;
    }

.stars-content {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.5s ease;
    max-width: 500px;
    width: 90%;
}

.stars-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
}

.stars-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 100%;
}

.star {
    font-size: 42px;
    color: #ddddde;
    transition: all 0.3s ease;
}

    .star.earned {
        color: #fbbf24;
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        animation: starPop 0.6s ease;
    }

.stars-score {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 16px;
}

.stars-message {
    font-size: 16px;
    color: #818c99;
    margin-bottom: 24px;
    line-height: 1.5;
}

.stars-close {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .stars-close:hover {
        background: #2980b9;
        transform: translateY(-2px);
    }

@keyframes pulseCorrect {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }
}

@keyframes shakeIncorrect {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes starPop {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.4) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .quiz-compact {
        padding: 12px;
    }

    .quiz-question-compact p {
        font-size: 14px;
    }

    .quiz-opt {
        padding: 10px 14px;
        font-size: 13px;
    }

    .stars-content {
        padding: 32px 24px;
    }

    .star {
        font-size: 32px;
    }

    .slider-track {
        height: 54px;
    }

    .slider-thumb {
        width: 46px;
        height: 46px;
    }

        .slider-thumb i {
            font-size: 16px;
        }

    .slider-label {
        font-size: 13px;
    }
}
