/* ============================================
   BASE CSS - Variables & Reset
   ============================================ */

:root {
    /* Core Color Palette - Reduced Neon, Professional Gaming */
    --bg-deep: #020408;
    --bg-dark: #060912;
    --bg-card: rgba(10, 14, 23, 0.6);
    
    /* Accent Color - One main accent as per requirements */
    --accent: #6366f1; /* Indigo-600 */
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    
    /* Status Colors */
    --success: #00ff88;
    --warning: #ffbb00;
    --error: #ff3366;
    --info: #00d4ff;
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --text-muted: #666666;
    
    /* Glassmorphism Variables */
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-gaming {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--info);
}

/* Utility classes for footer */
.hover-accent:hover {
    color: var(--accent);
    transition: var(--transition-smooth);
}

/* ============================================
   SYSTEM AWARE STYLES - Phase & Context Logic
   ============================================ */

/* 1. INIT PHASE (Booting) */
[data-ui-phase="init"] .main-container {
    filter: grayscale(1) brightness(0.5);
    transform: scale(1); /* Don't scale on init for mobile stability */
    pointer-events: none;
}

@media (min-width: 993px) {
    [data-ui-phase="init"] .main-container {
        transform: scale(0.98);
    }
}

[data-ui-phase="init"] .content-area > * {
    opacity: 0;
    filter: blur(10px);
}

/* 2. EXPLORE PHASE (Active Discovery) */
[data-ui-phase="explore"] .main-container {
    filter: grayscale(0) brightness(1);
    transform: scale(1);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. FOCUS PHASE (Deep Engagement) */
[data-ui-phase="focus"] .bg-mesh {
    opacity: 0.05; /* Dim background to focus on content */
    transition: opacity 0.8s ease;
}

[data-ui-phase="focus"] .top-navbar {
    background: rgba(2, 4, 8, 0.8);
    backdrop-filter: blur(20px);
}

/* Section Specific Adaptation */
[data-current-section="players"] .column-left {
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

[data-current-section="games"] .column-center {
    z-index: 10;
    transform: scale(1.02);
}

/* Atmospheric Evolution */
.bg-mesh {
    transition: all 1.5s ease;
}

[data-ui-phase="init"] .bg-mesh {
    filter: blur(150px);
    opacity: 0.1;
}

[data-ui-phase="explore"] .bg-mesh {
    filter: blur(80px);
    opacity: 0.2;
}

/* Context-Aware Navigation Highlights */
.nav-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-current-section="hero"] .nav-icon[data-target="home"],
[data-current-section="players"] .nav-icon[data-target="players"],
[data-current-section="games"] .nav-icon[data-target="games"] {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Signature Interaction: The "System Pulse" */
@keyframes system-pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.signature-active {
    animation: system-pulse 1.5s cubic-bezier(0.24, 0, 0.22, 1);
}

/* ============================================
   ANIMATIONS CSS - Motion Design
   ============================================ */

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-fade {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger Helpers (will be used with JS) */
.stagger-item {
    opacity: 0;
}

/* Background Animation */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.mesh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: mesh-move 20s infinite alternate;
}

@keyframes mesh-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* ============================================
   COMPONENTS CSS - UI Elements
   ============================================ */

.logo {
    cursor: default;
}

/* Navbar */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    font-size: 1.2rem;
    color: var(--text-dim);
    position: relative;
    cursor: pointer;
}

.nav-icon:hover, .nav-icon.active {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

/* Pagination */
@import url('https://fonts.googleapis.com/css?family=Poppins:900i');

* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  display: flex;
  justify-content: center;
}

/** PAGINATION **/

.hide {
    display: none;
    visibility: hidden;
}

.pagination {
    width: 30%;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 2rem 1rem;
}

.pagination button {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    position: relative;
    font-family: inherit;
    font-size: 1rem;
    text-shadow: none;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none !important;
    font-weight: 400 !important;
    cursor: pointer;
    margin: 1rem;
}

.pagination .cta {
    display: flex;
    /* padding: 10px 45px; */
    padding: 2px 15px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    color: white;
    background: #6225E6;
    transition: 1s;
    box-shadow: 6px 6px 0 black;
    transform: skewX(-15deg);
}

.pagination .cta span {
    align-content: center;
}

.pagination .cta:focus {
   outline: none; 
}

.next .cta span:nth-child(2) {
    transition: 0.5s;
    margin-right: 0px;
}

.prev .cta span:nth-child(1) {
    transition: 0.5s;
    margin-left: 0px;
}

.pagination span {
    transform: skewX(15deg) 
}

.next span:nth-child(2) {
    width: 20px;
    margin-left: 30px;
    position: relative;
    top: 12%;
}

.prev span:nth-child(1) {
    width: 20px;
    margin-right: 30px;
    right: 30px;
    position: relative;
    top: 12%;
}
  
/**************SVG****************/

.pagination path.one {
    transition: 0.4s;
    transform: translateX(-60%);
}

.pagination path.two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.pagination .cta:hover path.three {
    animation: color_anim 1s infinite 0.2s;
}

.pagination .cta:hover path.one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.pagination .cta:hover path.two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

/* SVG animations */

@keyframes color_anim {
    0% {
        fill: white;
    }
    50% {
        fill: #FBC638;
    }
    100% {
        fill: white;
    }
}


/* Cards */
.card-premium {
    position: relative;
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    will-change: transform, opacity;
    contain: content;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

/* Buttons */
.btn-primary {
    width: max-content;
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(124, 92, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 250, 0.5);
}

/* Player Rows */
.player-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

@media (max-width: 576px) {
    .player-row {
        grid-template-columns: 40px 1fr auto;
    }
    .player-game {
        display: none; /* Hide game name on small mobile to save space */
    }
    .player-rank {
        font-size: 0.8rem;
    }
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2);
    object-position: top 10px right -2.5px;
}

.player-info .name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.player-info .role {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.player-game {
    font-size: 0.85rem;
    color: var(--info);
    text-align: center;
}

.player-rank {
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

/* Game Cards */
.game-card {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.game-card .img-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    will-change: transform;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card .title {
    padding: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   EFFECTS CSS - Glassmorphism & Visual Polish
   ============================================ */

/* Advanced Multi-layer Glassmorphism */
.glass-premium {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 20px 0 rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Inner highlight for depth */
.glass-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

/* Noise Texture Overlay */
.glass-noise::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 1;
}

/* Hover Elevations */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(124, 92, 250, 0.3);
}

/* Subtle Glows */
.glow-text {
    text-shadow: 0 0 15px var(--accent-glow);
}

.glow-border:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Mask Reveal for Titles */
.mask-reveal {
    overflow: hidden;
}

.mask-reveal span {
    display: block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.mask-reveal.active span {
    transform: translateY(0);
}

/* ============================================
   LAYOUT CSS - Grid & Sections (FINAL)
   ============================================ */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(124, 92, 250, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 212, 255, 0.05), transparent 40%);
}

.main-container {
    width: 100%;
    max-width: 1440px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

/* ============================================
   Main Grid System
   ============================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* ============================================
   <= 1200px
   ============================================ */

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .column-right {
        grid-column: span 2;
    }
}

/* ============================================
   <= 992px (Layout only)
   ============================================ */

@media (max-width: 992px) {

    .page-wrapper {
        padding: 0;
    }

    /* .main-container {
        height: auto;
        min-height: 100vh;
        margin: 0;
        border-radius: 0 !important;
    } */

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .column-right {
        grid-column: span 1;
    }

    /* Featured stays normal here */
    .featured-banner {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* ============================================
   <= 768px (Featured = Hero Background)
   ============================================ */

@media (max-width: 768px) {

    .featured-banner {
        position: relative;
        min-height: 70vh;
        padding: 0;
        overflow: hidden;
    }

    /* Overlay FX */
    .featured-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
            circle at center,
            rgba(99, 102, 241, 0.15),
            rgba(2, 4, 8, 0.9)
        );
        z-index: 1;
    }

    /* Content on top */
    .featured-banner .banner-content {
        position: relative;
        z-index: 2;
        padding: 3rem 1.5rem;
        background: linear-gradient(
            to top,
            rgba(2, 4, 8, 0.85),
            rgba(2, 4, 8, 0.35)
        );
    }

}

/* ============================================
   <= 576px (Navbar & Footer)
   ============================================ */

@media (max-width: 576px) {

    .top-navbar {
        padding: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-group:nth-child(2) {
        order: 3;
        width: 100%;
        justify-content: space-around;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.5rem;
        border-radius: 10px;
    }

    .content-area {
        padding: 1rem;
    }

    .system-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin: 1rem !important;
    }
}

footer {
    cursor: default;
    margin: 0 1.5rem 1.5rem 1.5rem;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.featured-banner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	min-height: 350px;
	margin-bottom: 2rem;
    background-image: url('./cover.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.banner-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2), inset 0 0 20px 0 rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2rem;
    transition-property: background, backdrop-filter;
    transition-duration: 4s;
}

.banner-content:hover {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(5px) saturate(160%);
    -webkit-backdrop-filter: blur(5px) saturate(160%);
}

.notification-container {
	position: fixed;
	top: 2rem;
	right: 2rem;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.notification {
	padding: 1rem 1.5rem;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 250px;
	animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInRight {
	from {
		transform: translateX(120%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.notification.dismiss {
	animation: slideOutRight 0.4s ease forwards;
}

@keyframes slideOutRight {
	to {
		transform: translateX(120%);
		opacity: 0;
	}
}