/* Question Reels - Instagram-style Question Review */

.question-reels-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9999;
    overflow: hidden;
}

.reels-viewport {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.question-reel {
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    transition: transform 0.3s ease;
}

.question-reel.swiping-left {
    transform: translateX(-100px) rotate(-5deg);
    opacity: 0.5;
}

.question-reel.swiping-right {
    transform: translateX(100px) rotate(5deg);
    opacity: 0.5;
}

/* Question Card */
.reel-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 24px;
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.reel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    /* Squircle */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.reel-meta {
    flex: 1;
}

.reel-source {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.reel-timestamp {
    font-size: 12px;
    color: var(--text-secondary);
}

.reel-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-ai {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 10px var(--primary-glow);
}

.badge-trending {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 10px var(--accent-glow);
}

.badge-priority {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px var(--warning-glow);
}

/* Question Content */
.reel-question {
    margin: 24px 0;
}

.reel-question-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.reel-context {
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

/* Answer Section */
.reel-answer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reel-answer-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Bar */
.reel-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Action Buttons */
.reel-actions {
    position: absolute;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.action-btn.approve {
    color: #4ade80;
    border-color: #4ade80;
}

.action-btn.approve:hover {
    background: #4ade80;
    color: #000;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.action-btn.reject {
    color: #f87171;
    border-color: #f87171;
}

.action-btn.reject:hover {
    background: #f87171;
    color: #000;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.4);
}

.action-label {
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.reel-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 100;
    transition: width 0.1s linear;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.reel-card {
    animation: float 6s ease-in-out infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .reel-card {
        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .reel-actions {
        right: 10px;
        bottom: 80px;
    }

    .action-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Confetti Animation for Approval */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Shake Animation for Rejection */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}
/* Video Mode Styles */
.reel-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.reel-avatar-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.reel-attribution {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
}

.ai-sparkle {
    animation: pulse 2s infinite;
}

.reel-content-layer {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 100px;
}

.reel-card {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

