/* ========================================
   Modern Hero Section for Quests - Parallax Effect
   ======================================== */

/* Remove main padding for quest page */
main:has(.quests) {
    padding: 0 !important;
}

.quests {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.quests-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 136, 255, 0.08) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
    background-position: center center, center center, 0 0, 0 0;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--background) 100%);
    pointer-events: none;
}

/* Particles removed for performance */

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: var(--spacing-2xl);
    padding-top: calc(80px + var(--spacing-2xl));
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-badge {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.hero-title-main {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--primary-light) 50%,
            var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-title-sub {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.9;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    padding: var(--spacing-xl);
}

.hero-stat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.hero-stat:hover::before {
    left: 100%;
}

.hero-stat:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

.hero-stat-highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.hero-stat-xp {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(179, 136, 255, 0.15) 100%);
    border-color: var(--primary-color);
}

.hero-stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    margin-top: var(--spacing-2xl);
    color: var(--text-secondary);
}

.hero-scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    font-size: 2rem;
    opacity: 0.7;
}

/* Content Section with Container */
.quest-filters,
.quests-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hide old header and stats */
.quests-header {
    display: none !important;
}

.quests-stats {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quests-hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-content {
        padding: var(--spacing-md);
        padding-top: 0;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        letter-spacing: 1px;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-title {
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        margin-bottom: var(--spacing-lg);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: 0;
        margin-bottom: var(--spacing-lg);
    }

    .hero-stat {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .hero-stat-value {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .hero-scroll-indicator {
        margin-top: var(--spacing-md);
    }
    
    .hero-scroll-indicator span {
        font-size: 0.75rem;
    }
    
    .scroll-arrow {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quests-hero {
        min-height: 100vh;
        padding: calc(70px + var(--spacing-md)) 0 var(--spacing-md);
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xs);
    }
    
    .hero-stat {
        padding: var(--spacing-sm);
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.65rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
}

/* ========================================
   Quests Styles
   ======================================== */

.quests {
    max-width: 1000px;
    margin: 0 auto;
}

.quests-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg,
            rgba(0, 217, 255, 0.1) 0%,
            transparent 50%,
            rgba(179, 136, 255, 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.quests-header::before {
    content: '🎮';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3rem;
    opacity: 0.1;
    animation: float-gentle 4s ease-in-out infinite;
}

.quests-header::after {
    content: '🏆';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
    animation: float-gentle 4s ease-in-out infinite reverse;
}

@keyframes float-gentle {

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

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

.quests-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--primary-light) 50%,
            var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    z-index: 1;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.quests-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.quests-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.quest-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.05), transparent);
    transition: left 0.6s;
}

.quest-card:hover::before {
    left: 100%;
}

.quest-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 217, 255, 0.15);
}

.quest-card.completed {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(105, 240, 174, 0.1) 0%, var(--surface-elevated) 100%);
    border-color: rgba(105, 240, 174, 0.3);
}

.quest-header {
    margin-bottom: var(--spacing-md);
}

.quest-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.quest-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.quest-card.ready-to-claim .quest-title {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.quest-completed-badge {
    background: var(--success);
    color: var(--background);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
}

.quest-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.quest-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.quest-info {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.quest-type,
.quest-game {
    background: var(--surface);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quest-progress {
    background: var(--background-lighter);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 12px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--primary-light) 50%,
            var(--accent-green) 100%);
    border-radius: var(--radius-lg);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.quest-card.ready-to-claim .progress-fill {
    background: linear-gradient(90deg,
            #FFD700 0%,
            #FFA500 50%,
            #FFD700 100%);
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    }
}

.quest-rewards {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--background-lighter);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.reward-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.reward-item:hover::before {
    left: 100%;
}

.quest-card.ready-to-claim .reward-item {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.1) 0%,
            var(--background-lighter) 100%);
}

.quest-card.ready-to-claim .reward-item:hover {
    border-color: #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.reward-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {

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

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

.quest-card.ready-to-claim .reward-icon {
    animation: icon-float 3s ease-in-out infinite, icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
    }
}

.reward-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.quest-card.ready-to-claim .reward-value {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

@media (max-width: 768px) {
    .quests-header {
        margin-top: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .quests-header h2 {
        font-size: 2rem;
    }

    .quests-stats {
        grid-template-columns: 1fr;
    }

    .quest-title {
        font-size: 1.2rem;
    }

    .quest-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

/* Quest Status Badges */
.quest-claimed-badge {
    background: rgba(105, 240, 174, 0.2);
    color: var(--success);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--success);
}

.quest-ready-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--background);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

/* Quest Card States */
.quest-card.ready-to-claim {
    border: 2px solid #FFD700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.5);
    animation: border-pulse 2s ease-in-out infinite, glow-pulse 2s ease-in-out infinite;
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.12) 0%,
            var(--surface-elevated) 50%,
            rgba(255, 165, 0, 0.12) 100%);
}

.quest-card.ready-to-claim::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 3rem;
    animation: sparkle-rotate 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes sparkle-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.8;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.4),
            0 8px 25px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.6),
            0 8px 30px rgba(255, 215, 0, 0.3);
    }
}

@keyframes border-pulse {

    0%,
    100% {
        border-color: #FFD700;
    }

    50% {
        border-color: #FFA500;
    }
}

.quest-card.claimed {
    opacity: 0.75;
    background: linear-gradient(135deg,
            rgba(105, 240, 174, 0.08) 0%,
            var(--surface-elevated) 50%,
            rgba(105, 240, 174, 0.05) 100%);
    position: relative;
    border-color: rgba(105, 240, 174, 0.3);
}

.quest-card.claimed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    color: rgba(105, 240, 174, 0.12);
    font-weight: bold;
    pointer-events: none;
    z-index: 0;
    text-shadow: 0 0 20px rgba(105, 240, 174, 0.3);
}

/* Active Quest Card Style */
.quest-card[data-quest-status="active"] {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(90deg,
            rgba(0, 217, 255, 0.05) 0%,
            var(--surface-elevated) 20%);
}

.quest-card[data-quest-status="active"]:hover {
    border-left-color: var(--primary-light);
}

.quest-card.claimed>* {
    position: relative;
    z-index: 1;
}

.quest-card.claimed .progress-fill {
    background: linear-gradient(90deg, var(--success) 0%, #69f0ae 100%);
}

.quest-card.claimed .quest-title {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Claim Button */
.claim-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--background);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.claim-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.claim-btn:hover::before {
    width: 300px;
    height: 300px;
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.claim-btn:active {
    transform: translateY(0);
}

.claim-btn-icon {
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

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

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

.claim-btn.claiming {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    cursor: not-allowed;
    pointer-events: none;
}

.claim-btn.claimed-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--accent-green) 100%);
    animation: success-pulse 0.5s ease-out;
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.checkmark {
    font-size: 1.5rem;
    animation: checkmark-pop 0.3s ease-out;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Reward Particles Animation */
.reward-particle {
    position: absolute;
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
    animation: float-up 2s ease-out forwards;
    z-index: 1000;
}

.xp-particle {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.coins-particle {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-200px) scale(1.5);
    }
}

/* Claimed Info */
.claimed-info {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(105, 240, 174, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--spacing-md);
}

/* Celebration Overlay */
.celebration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 999;
    animation: fade-in-out 2s ease-in-out forwards;
}

@keyframes fade-in-out {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.celebration-content {
    text-align: center;
    color: white;
}

.celebration-icon {
    font-size: 5rem;
    animation: celebration-bounce 0.6s ease-out;
}

@keyframes celebration-bounce {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.celebration-text {
    font-size: 2rem;
    font-weight: 700;
    margin: var(--spacing-md) 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.celebration-rewards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.celebration-reward-item {
    font-size: 1.3rem;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    animation: slide-in 0.5s ease-out forwards;
}

.celebration-reward-item:nth-child(1) {
    animation-delay: 0.3s;
}

.celebration-reward-item:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Quest Filters - Professional & Fun Design
   ======================================== */

.quest-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--background-lighter);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.quest-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.quest-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s;
}

.quest-filter-btn:hover::before {
    left: 100%;
}

.quest-filter-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.quest-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-light);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4),
        0 0 40px rgba(0, 217, 255, 0.2);
}

.quest-filter-btn.active .filter-icon {
    animation: bounce-rotate 0.6s ease-out;
}

/* Highlight for Ready filter when there are unclaimed rewards */
.quest-filter-btn[data-filter="ready"].has-unclaimed {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: #FFD700;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3),
                0 4px 12px rgba(255, 215, 0, 0.2);
    animation: ready-pulse-subtle 3s ease-in-out infinite;
}

.quest-filter-btn[data-filter="ready"].has-unclaimed .filter-icon {
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes ready-pulse-subtle {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3),
                    0 4px 12px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5),
                    0 6px 16px rgba(255, 215, 0, 0.3);
    }
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes bounce-rotate {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.3) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.filter-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.quest-filter-btn:hover .filter-icon {
    transform: scale(1.2);
}

.filter-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Quest Card Enhanced Styling */
.quest-card {
    opacity: 0;
    transform: translateY(20px);
}

.quest-card.fade-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

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

/* Enhanced Quest Stats Badges */
.quests-stats {
    background: linear-gradient(135deg, var(--background-lighter) 0%, var(--surface) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quests-stats .stat-badge {
    background: linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface) 100%);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quests-stats .stat-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quests-stats .stat-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
}

.quests-stats .stat-badge:hover::after {
    opacity: 1;
}

/* Mobile Responsive for Filters */
@media (max-width: 768px) {
    .quest-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .quest-filter-btn {
        padding: var(--spacing-md);
        font-size: 0.85rem;
    }

    .filter-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quest-filters {
        grid-template-columns: 1fr;
    }
}

/* Empty State Message for Quest Filters */
.quests-empty-message {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border);
    margin: var(--spacing-xl) 0;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    animation: float-gentle 3s ease-in-out infinite;
    filter: grayscale(0.3);
}

.empty-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
}