/* ================================================
   RageGameLab — Teeter Stack Theme
   ================================================ */

html {
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #231F20; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #FFD700; }

/* Glass panels */
.glass-panel {
    background: rgba(35, 31, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 215, 0, 0.2);
}

/* Gold glow */
.gold-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.1);
}

.gold-text-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.15);
}

/* Gradient text */
.gradient-text-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold pulse button */
.btn-gold-pulse {
    animation: goldPulse 2.5s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 4px 30px rgba(255, 215, 0, 0.5);
    }
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease;
}

/* Falling blocks hero animation */
.falling-blocks-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.falling-block {
    position: absolute;
    border-radius: 6px;
    opacity: 0;
    animation: blockFall linear infinite;
}

@keyframes blockFall {
    0% {
        transform: translateY(-80px) rotate(0deg);
        opacity: 0;
    }
    5% { opacity: 0.15; }
    85% { opacity: 0.15; }
    100% {
        transform: translateY(calc(100vh + 80px)) rotate(540deg);
        opacity: 0;
    }
}

/* Nav link underline */
.nav-link-custom {
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* Section divider */
.block-divider {
    height: 4px;
    background: #FFD700;
    border-radius: 2px;
}

/* Toast notification */
.toast-notification {
    animation: slideInFromRight 0.4s ease-out, fadeOutToast 0.4s ease-in 4.6s forwards;
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Form input glow */
input:focus,
textarea:focus,
select:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.1) !important;
}

/* Score counter tabular nums */
.score-counter {
    font-variant-numeric: tabular-nums;
}

/* Bounce entrance */
@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out forwards;
}

/* Wobble for decorative blocks */
@keyframes wobble {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.animate-wobble {
    animation: wobble 3s ease-in-out infinite;
}

/* Gallery masonry grid */
.masonry-grid {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .masonry-grid { column-count: 2; }
}

@media (min-width: 1024px) {
    .masonry-grid { column-count: 3; }
}

.masonry-grid > * {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* Gold HR */
.gold-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    opacity: 0.3;
}

/* Beam tilt animation */
@keyframes tiltBeam {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

.animate-tilt {
    animation: tiltBeam 3s ease-in-out infinite;
}

/* Step number circle */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ================================================
   Shadow Extraction — Military Action Theme
   ================================================ */

.gradient-text-rage {
    background: linear-gradient(135deg, #DC2626, #EA580C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rage-glow {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2), 0 0 40px rgba(220, 38, 38, 0.1);
}

.rage-text-glow {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.4), 0 0 30px rgba(220, 38, 38, 0.15);
}

.rage-divider {
    height: 4px;
    background: #DC2626;
    border-radius: 2px;
}

.rage-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #DC2626, transparent);
    opacity: 0.3;
}

/* Muzzle flash pulse */
@keyframes muzzleFlash {
    0%, 100% { opacity: 0; }
    5% { opacity: 0.8; }
    10% { opacity: 0; }
    50% { opacity: 0; }
    55% { opacity: 0.6; }
    60% { opacity: 0; }
}

.animate-muzzle {
    animation: muzzleFlash 2s ease-in-out infinite;
}
