/**
 * Quest Preferences Styles
 * Visual styles and celebration animations based on student preferences
 */

/* ========================================
   VISUAL STYLE VARIANTS
   ======================================== */

/* Calm Mode - Minimal animations */
body.quest-visual-calm * {
    transition-duration: 0.1s !important;
    animation-duration: 0.3s !important;
}

body.quest-visual-calm .shimmer,
body.quest-visual-calm .pulse,
body.quest-visual-calm .bounce {
    animation: none !important;
}

body.quest-visual-calm :hover {
    transform: none !important;
}

/* Standard Mode - Normal effects (default) */
body.quest-visual-standard {
    /* Uses existing animations */
}

/* Dynamic Mode - Enhanced animations */
body.quest-visual-dynamic * {
    transition-duration: 0.4s !important;
}

body.quest-visual-dynamic :hover {
    transform: translateY(-4px) scale(1.02) !important;
}

body.quest-visual-dynamic .quest-card:hover {
    box-shadow: 0 12px 40px rgba(88, 115, 203, 0.3) !important;
}

@keyframes dynamicPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

body.quest-visual-dynamic .assignment-card {
    animation: dynamicPulse 3s ease-in-out infinite;
}

/* ========================================
   CELEBRATION STYLES
   ======================================== */

/* Subtle Celebration */
.celebration-subtle-notification {
    position: fixed;
    top: 80px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.celebration-subtle-notification .material-symbols-rounded {
    font-size: 20px;
}

.celebration-subtle-notification .xp-subtle {
    color: var(--text-primary);
    font-weight: 600;
}

.celebration-subtle-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Max Celebration */
.celebration-max-animation {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-black-70);
    backdrop-filter: blur(8px);
    z-index: 10001;
    animation: fadeIn 0.3s ease-out;
}

.celebration-burst {
    text-align: center;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.celebration-burst .material-symbols-rounded {
    font-size: 120px;
    background: linear-gradient(135deg, #FDD835, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 16px;
    animation: rotate 0.6s ease-out;
}

.celebration-burst h2 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #5873CB, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
}

.xp-massive {
    font-size: 36px;
    font-weight: 700;
    color: #FDD835;
    text-shadow: 0 0 20px rgba(253, 216, 53, 0.5);
    animation: pulse 0.6s ease-out infinite;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(-30deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
