/* ==================== POL KHOL LIVE 2026 - STYLES ==================== */

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FFD700, #B8860B);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FFF700, #FFD700);
}

/* ==================== SPARKLE BACKGROUND ==================== */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    animation: sparkle-float 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

/* ==================== CONFETTI ==================== */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 4s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== CATEGORY CARDS ==================== */
.category-card input:checked + div {
    border-color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.2) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

.category-card input:checked + div::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1rem;
    color: #FFD700;
    font-weight: bold;
}

.category-card > div {
    position: relative;
}

/* ==================== FADE IN ANIMATION ==================== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

/* ==================== SLIDE UP ANIMATION ==================== */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==================== BOUNCE ANIMATION ==================== */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* ==================== PULSE GLOW ==================== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== LOG ANIMATION ==================== */
@keyframes log-appear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-line {
    animation: log-appear 0.3s ease-out forwards;
}

/* ==================== SHAKE ANIMATION ==================== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* ==================== COPY SUCCESS STATE ==================== */
#copyBtn.copied {
    background: linear-gradient(to right, #22c55e, #16a34a) !important;
    border-color: #22c55e !important;
}

/* ==================== PROGRESS BAR GLOW ==================== */
#progressBar {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3);
}

/* ==================== TROPHY BOUNCE ==================== */
@keyframes trophy-bounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.trophy-bounce {
    animation: trophy-bounce 1s ease-in-out infinite;
}

/* ==================== GOLD SHIMMER ==================== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        #FFD700 0%,
        #FFF8DC 25%,
        #FFD700 50%,
        #FFF8DC 75%,
        #FFD700 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ==================== STAGE LIGHTS ==================== */
@keyframes stage-light {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.stage-light {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    animation: stage-light 4s ease-in-out infinite;
}

.stage-light-1 {
    background: rgba(255, 215, 0, 0.3);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.stage-light-2 {
    background: rgba(255, 20, 147, 0.3);
    top: -150px;
    right: -100px;
    animation-delay: 2s;
}

.stage-light-3 {
    background: rgba(147, 51, 234, 0.3);
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

/* ==================== FLOATING ANIMATION ==================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ==================== RESPONSIVE FIXES ==================== */
@media (max-width: 640px) {
    #categoryGrid {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-card > div {
        padding: 0.75rem;
    }
    
    .category-card .text-3xl {
        font-size: 1.5rem;
    }
}

/* ==================== CERTIFICATE STYLES ==================== */
.certificate-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
    border: 3px solid #FFD700;
    position: relative;
}

.certificate-preview::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    pointer-events: none;
}

/* ==================== TEXT EFFECTS ==================== */
.text-shadow-gold {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

.text-shadow-white {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== GRADIENT BORDERS ==================== */
.gradient-border {
    position: relative;
    background: linear-gradient(#1a1a2e, #1a1a2e) padding-box,
                linear-gradient(135deg, #FFD700, #FF1493, #6B21A8) border-box;
    border: 2px solid transparent;
}

/* ==================== DECORATIVE PATTERNS ==================== */
.pattern-dots {
    background-image: radial-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ==================== LOADING DOTS ==================== */
@keyframes loading-dots {
    0%, 20% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.loading-dot {
    animation: loading-dots 1.4s infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ==================== SCREEN FLASH ==================== */
@keyframes screen-flash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

.screen-flash {
    position: fixed;
    inset: 0;
    background: white;
    pointer-events: none;
    z-index: 9999;
    animation: screen-flash 0.3s ease-out forwards;
}

/* ==================== CELEBRATION BURST ==================== */
@keyframes burst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.burst-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    animation: burst 0.6s ease-out forwards;
}


/* ==================== DISCLAIMER MODAL STYLES ==================== */
#disclaimerModal {
    animation: modal-fade-in 0.3s ease-out;
}

#disclaimerModal.hidden {
    display: none !important;
}

#disclaimerModal:not(.hidden) {
    display: flex !important;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#disclaimerModal > div {
    animation: modal-slide-up 0.3s ease-out;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal close animation */
#disclaimerModal.closing {
    animation: modal-fade-out 0.2s ease-in forwards;
}

#disclaimerModal.closing > div {
    animation: modal-slide-down 0.2s ease-in forwards;
}

@keyframes modal-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modal-slide-down {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

/* Scrollbar for modal content */
#disclaimerModal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#disclaimerModal .overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#disclaimerModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

#disclaimerModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}
