/* ==========================================================================
   GAMER OFFERS PORTAL - CYBERPUNK / GAMER DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(14, 18, 28, 0.75);
    --primary-cyan: #00f0ff;
    --primary-magenta: #ff007f;
    --accent-yellow: #ffea00;
    --whatsapp-green: #25d366;
    --whatsapp-glow: rgba(37, 211, 102, 0.6);
    --text-main: #f0f4f8;
    --text-muted: #8a99ad;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --neon-shadow-cyan: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 40px rgba(0, 240, 255, 0.2);
    --neon-shadow-magenta: 0 0 20px rgba(255, 0, 127, 0.4), 0 0 40px rgba(255, 0, 127, 0.2);
}

/* Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-main);
}

/* ==========================================================================
   DYNAMIC BACKGROUND CANVAS & OVERLAYS
   ========================================================================== */

#gamer-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.cyber-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 40%, rgba(5, 7, 12, 0.85) 90%);
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   APPLICATION CONTAINER
   ========================================================================== */

.app-container {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1rem;
}

/* ==========================================================================
   3D CAROUSEL SECTION (FULLSCREEN MAXIMIZED IMAGES)
   ========================================================================== */

.carousel-section {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
    overflow: hidden;
    margin: 0;
}

.drag-hint {
    position: absolute;
    top: 6px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 20;
    animation: bounceHint 2s infinite;
}

/* Carousel Container & Track */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1800px;
    height: 82vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    margin-top: 15px;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Slide Element (No Container - Pure Fullscreen Floating Image) */
.carousel-card {
    position: absolute;
    width: 780px;
    max-width: 82vw;
    height: 76vh;
    max-height: 820px;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.6s ease, 
                filter 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Card Header Tag (Floating Badge) */
.card-header-tag {
    position: absolute;
    top: 6px;
    left: 10px;
    z-index: 15;
    background: rgba(7, 9, 14, 0.92);
    border: 1px solid var(--primary-cyan);
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(8px);
}

/* Pure Image Area (Maximized Dimensions) */
.card-image-wrap {
    width: 100%;
    height: calc(100% - 58px);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 15px rgba(0, 240, 255, 0.2));
}

.carousel-card.active .card-image-wrap img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
}

/* Floating Action Bar under Image */
.card-action-bar {
    width: 90%;
    max-width: 500px;
    height: 50px;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 15;
    margin-top: 4px;
}

/* WhatsApp Buy Button */
.whatsapp-buy-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 0 25px var(--whatsapp-glow), 0 8px 20px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.whatsapp-buy-btn i {
    font-size: 1.3rem;
}

.whatsapp-buy-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.75s ease;
}

.whatsapp-buy-btn:hover::before {
    transform: rotate(30deg) translateX(100%);
}

.whatsapp-buy-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.85), 0 8px 20px rgba(0,0,0,0.7);
    background: linear-gradient(135deg, #29f377 0%, #15a594 100%);
}

.whatsapp-buy-btn:active {
    transform: translateY(1px) scale(0.99);
}

/* 3D CAROUSEL POSITIONS (Active, Left/Right Previews, Offscreen) */

/* Active Slide (Center Floating Image) */
.carousel-card.active {
    z-index: 10;
    transform: translateX(0) translateZ(110px) rotateY(0deg) scale(1.08);
    opacity: 1;
    filter: brightness(1);
    pointer-events: auto;
}

/* Immediately Previous Slide (Left Preview) */
.carousel-card.prev-1 {
    z-index: 8;
    transform: translateX(-72%) translateZ(-100px) rotateY(22deg) scale(0.76);
    opacity: 0.55;
    filter: brightness(0.65) blur(0.5px);
    cursor: pointer;
}

/* Immediately Next Slide (Right Preview) */
.carousel-card.next-1 {
    z-index: 8;
    transform: translateX(72%) translateZ(-100px) rotateY(-22deg) scale(0.76);
    opacity: 0.55;
    filter: brightness(0.65) blur(0.5px);
    cursor: pointer;
}

/* Outer Left Slide */
.carousel-card.prev-2 {
    z-index: 5;
    transform: translateX(-120%) translateZ(-220px) rotateY(35deg) scale(0.58);
    opacity: 0.2;
    filter: brightness(0.35) blur(2px);
    cursor: pointer;
}

/* Outer Right Slide */
.carousel-card.next-2 {
    z-index: 5;
    transform: translateX(120%) translateZ(-220px) rotateY(-35deg) scale(0.58);
    opacity: 0.2;
    filter: brightness(0.35) blur(2px);
    cursor: pointer;
}

/* Hidden Slides */
.carousel-card.hidden-left {
    z-index: 1;
    transform: translateX(-150%) translateZ(-300px) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.carousel-card.hidden-right {
    z-index: 1;
    transform: translateX(150%) translateZ(-300px) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

/* NAV BUTTONS */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--primary-cyan);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* ==========================================================================
   ULTRA-COMPACT FOOTER BAR CONTROLS
   ========================================================================== */

.gamer-footer {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 1rem;
    background: rgba(10, 14, 23, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    gap: 16px;
    margin-bottom: 2px;
}

.autoplay-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-autoplay-btn {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--primary-cyan);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.toggle-autoplay-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 10px var(--primary-cyan);
}

.progress-bar-wrap {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    box-shadow: 0 0 8px var(--primary-cyan);
    transition: width 0.1s linear;
}

/* Slide Counter */
.slide-counter {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.slide-counter .current-slide {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px var(--primary-cyan);
}

.slide-counter .separator {
    color: var(--text-muted);
    margin: 0 2px;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    transform: rotate(45deg);
}

.dot.active {
    background: var(--primary-cyan);
    border-color: #ffffff;
    box-shadow: 0 0 8px var(--primary-cyan);
    transform: rotate(45deg) scale(1.3);
}

.dot:hover:not(.active) {
    background: rgba(0, 240, 255, 0.5);
}

/* Keyframe Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounceHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .carousel-card {
        width: 600px;
        height: 80vh;
    }
    .carousel-card.prev-1 { transform: translateX(-65%) translateZ(-70px) rotateY(18deg) scale(0.76); }
    .carousel-card.next-1 { transform: translateX(65%) translateZ(-70px) rotateY(-18deg) scale(0.76); }
    .carousel-card.prev-2, .carousel-card.next-2 { display: none; }
    .nav-btn { width: 42px; height: 42px; font-size: 1rem; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@media (max-width: 580px) {
    .app-container { padding: 0.4rem; }
    .carousel-card {
        width: 340px;
        height: 76vh;
    }
    .card-header-tag { font-size: 0.7rem; padding: 4px 10px; }
    .whatsapp-buy-btn { font-size: 0.85rem; height: 42px; }
    .progress-bar-wrap { width: 60px; }
}
