/*
 * ============================================
 *   SECTIONS — Extracted inline styles + Enhancements
 * ============================================
 *  1 - Scroll Reveal Animations
 *  2 - Wipe Countdown
 *  3 - VIP Carousel
 *  4 - Kill-Feed Sidebar
 *  5 - Scroll-to-Top Button
 *  6 - Hero Particles
 * ============================================
 */


/* ─────────────────────────────────────────────
   1 - Scroll Reveal Animations
   ───────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children delay */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ─────────────────────────────────────────────
   2 - Wipe Countdown Section
   ───────────────────────────────────────────── */

.wipe-section {
    margin-top: -50px;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: url('../img/rust-fire-bg.webp') center/cover;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.wipe-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(255,69,0,0.1), rgba(0,0,0,0.8));
}

.wipe-title {
    color: #ff4500;
    font-weight: 900;
    letter-spacing: 4px;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 2px 2px 0px #000;
}

.time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    margin-top: 5px;
}

.time-divider {
    font-size: 3rem;
    font-weight: 900;
    color: #ff4500;
    line-height: 1;
    animation: dividerPulse 1s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.wipe-progress-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.wipe-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #ff4500, #ff8c00);
    width: 0%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.8);
    transition: width 0.4s linear;
}

.wipe-fuse {
    position: absolute;
    right: 0;
    top: -10px;
    width: 25px;
    height: 25px;
    background: url('../img/spark.png') center/contain no-repeat;
    animation: sparkAnim 0.5s infinite alternate;
}

@keyframes sparkAnim {
    to { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 768px) {
    .time-number { font-size: 2rem; }
    .time-divider { font-size: 1.5rem; }
    .wipe-section { margin-top: 0; padding: 40px 15px; }
}


/* ─────────────────────────────────────────────
   3 - VIP Carousel
   ───────────────────────────────────────────── */

.vips-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(234, 179, 8, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.vip-carousel-wrapper {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.vip-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollVips 40s linear infinite;
}

.vip-track:hover {
    animation-play-state: paused;
}

.vip-card {
    width: 180px;
    flex-shrink: 0;
}

.vip-card-inner {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vip-card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(234, 179, 8, 0.1), transparent 30%);
    animation: rotateBorder 4s linear infinite;
}

.vip-card-inner:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(234, 179, 8, 0.2);
}

.vip-avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    z-index: 1;
}

.vip-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(234, 179, 8, 0.5);
    padding: 3px;
    background: #1a1a1a;
}

.vip-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #eab308;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.vip-info {
    position: relative;
    z-index: 1;
}

.vip-name {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.vip-group {
    display: block;
    font-size: 0.75rem;
    color: #eab308;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes scrollVips {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}


/* ─────────────────────────────────────────────
   4 - Kill-Feed Sidebar
   ───────────────────────────────────────────── */

.kill-feed-sidebar {
    position: fixed;
    right: 0;
    top: 150px;
    width: 320px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.kill-feed-sidebar.is-open {
    transform: translateX(0);
}

.kill-feed-tab {
    position: absolute;
    left: 0;
    top: 18px;
    transform: translateX(-100%);
    width: 44px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 69, 0, 0.45);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #ff4500;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.kill-feed-tab:hover,
.kill-feed-sidebar.is-open .kill-feed-tab {
    background: rgba(255, 69, 0, 0.28);
    color: #fff;
}

.kill-feed-tab.has-new {
    animation: killTabPulse 1.4s ease-in-out infinite;
}

@keyframes killTabPulse {
    0%, 100% { box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 69, 0, 0.55); }
    50% { box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.45), 0 0 14px 3px rgba(255, 69, 0, 0.55); }
}

.kill-feed-panel {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-right: none;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.kill-feed-header {
    background: rgba(255, 69, 0, 0.2);
    padding: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ff4500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.kill-feed-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.5) transparent;
}

.kill-feed-list::-webkit-scrollbar { width: 4px; }
.kill-feed-list::-webkit-scrollbar-track { background: transparent; }
.kill-feed-list::-webkit-scrollbar-thumb {
    background: rgba(255, 69, 0, 0.5);
    border-radius: 10px;
}

.kill-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.kill-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 69, 0, 0.2);
}

.kill-players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.kill-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
}

.kill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kill-name {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.kill-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.kill-weapon {
    width: 45px;
    height: auto;
    max-height: 22px;
    object-fit: contain;
    opacity: 0.9;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 2px rgba(255, 69, 0, 0.4));
}

.kill-dist {
    font-size: 0.65rem;
    color: #ff4500;
    font-weight: 700;
}

.attacker .kill-avatar { border-color: rgba(0, 255, 0, 0.3); }
.victim .kill-avatar { border-color: rgba(255, 0, 0, 0.3); }


/* ─────────────────────────────────────────────
   5 - Scroll-to-Top Button
   ───────────────────────────────────────────── */

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(206, 66, 43, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: rgba(206, 66, 43, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(206, 66, 43, 0.4);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}


/* ─────────────────────────────────────────────
   6 - Hero Particle Canvas
   ───────────────────────────────────────────── */

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero p,
.hero .hero-ctas {
    position: relative;
    z-index: 1;
}
