
:root {
  --neon-purple: #7000ff;
  --neon-magenta: #d900ff;
  --neon-blue: #00f0ff;
  --light-purple: #c4a0ff;
  --bg-dark: #050010;
  --glass-bg: rgba(10, 0, 20, 0.6);
  --glass-border: rgba(112, 0, 255, 0.3);
  
  /* Riot Style Theme */
  --riot-bg: #0F0F12;
  --riot-panel: #1A1B20;
  --riot-panel-hover: #23242B;
  --riot-accent: #FF4655;
  --riot-accent-hover: #ff5e6b;
  --riot-text-muted: #8b8c8f;
}

body {
  background-color: var(--riot-bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .cyber-font {
  font-family: 'Orbitron', sans-serif;
}

.brush-font {
  font-family: 'Permanent Marker', cursive;
}

.shadow-text {
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

/* Background overlay adjustments if needed */
.login-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.15) 100%);
  border-radius: 20px;
  /* Chamfered corners trick for border */
  clip-path: polygon(
    20px 0, 100% 0, 
    100% calc(100% - 20px), calc(100% - 20px) 100%, 
    0 100%, 0 20px
  );
}

.inner-panel {
  clip-path: polygon(
    19px 0, 100% 0, 
    100% calc(100% - 19px), calc(100% - 19px) 100%, 
    0 100%, 0 19px
  );
}

.chamfer-btn {
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.chamfer-btn-primary {
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

/* Cyber grid background for other pages */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(112, 0, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 0, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  animation: grid-move 20s linear infinite;
  transform: perspective(500px) rotateX(60deg) scale(2);
  transform-origin: bottom;
}

@keyframes grid-move {
  0% { transform: perspective(500px) rotateX(60deg) scale(2) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) scale(2) translateY(30px); }
}

/* Glow effects */
.glow-text {
  text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-magenta);
}

.glow-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glow-btn:hover {
  box-shadow: 0 0 20px var(--neon-purple), 0 0 40px var(--neon-magenta);
}

/* Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .glass-panel {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* Onboarding Animations */
.split-container {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.split-i, .split-gamer {
  transition: transform 0.8s ease;
}

.split-active .split-i {
  transform: translateX(-180px);
}

.split-active .split-gamer {
  transform: translateX(180px);
}

.input-section {
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
  pointer-events: none;
}

.split-active .input-section {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition-delay: 0.4s;
}



.step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-magenta));
  width: 0%;
  transition: width 0.3s ease;
}

/* Cyberpunk Online/Offline Flash Transitions */
.status-flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0;
}

.status-flash-online {
  animation: cyber-flash-green 0.6s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

.status-flash-offline {
  animation: cyber-flash-red 0.6s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes cyber-flash-green {
  0% {
    opacity: 0.8;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, rgba(34, 197, 94, 0.1) 60%, transparent 100%);
    box-shadow: inset 0 0 100px rgba(34, 197, 94, 0.5);
  }
  15% {
    opacity: 0.9;
    box-shadow: inset 0 0 150px rgba(34, 197, 94, 0.7);
  }
  100% {
    opacity: 0;
    background: transparent;
    box-shadow: inset 0 0 0 transparent;
  }
}

@keyframes cyber-flash-red {
  0% {
    opacity: 0.8;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.1) 60%, transparent 100%);
    box-shadow: inset 0 0 100px rgba(239, 68, 68, 0.5);
  }
  15% {
    opacity: 0.9;
    box-shadow: inset 0 0 150px rgba(239, 68, 68, 0.7);
  }
  100% {
    opacity: 0;
    background: transparent;
    box-shadow: inset 0 0 0 transparent;
  }
}

.scanline-sweep-overlay {
  position: fixed;
  left: 0;
  width: 100vw;
  z-index: 101;
  pointer-events: none;
}

.scanline-sweep-online {
  animation: scanline-move-green 0.5s ease-out forwards;
}

.scanline-sweep-offline {
  animation: scanline-move-red 0.5s ease-out forwards;
}

@keyframes scanline-move-green {
  0% {
    top: 0%;
    background: linear-gradient(to bottom, transparent, rgba(34, 197, 94, 0.5) 50%, transparent 100%);
    height: 12px;
    opacity: 1;
  }
  100% {
    top: 100%;
    background: linear-gradient(to bottom, transparent, rgba(34, 197, 94, 0.5) 50%, transparent 100%);
    height: 12px;
    opacity: 0;
  }
}

@keyframes scanline-move-red {
  0% {
    top: 0%;
    background: linear-gradient(to bottom, transparent, rgba(239, 68, 68, 0.5) 50%, transparent 100%);
    height: 12px;
    opacity: 1;
  }
  100% {
    top: 100%;
    background: linear-gradient(to bottom, transparent, rgba(239, 68, 68, 0.5) 50%, transparent 100%);
    height: 12px;
    opacity: 0;
  }
}

/* Riot Custom Navigation & View states */
.nav-item.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.active .active-indicator {
  height: 50%;
}

.nav-item:hover .active-indicator {
  height: 50%;
  opacity: 0.5;
}

.nav-item.active:hover .active-indicator {
  opacity: 1;
}

/* Game Logo Icon States (colorless by default, glowing drop shadow on selection) */
.nav-item img {
  filter: grayscale(100%) opacity(0.5);
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover img {
  filter: grayscale(0%) opacity(0.85);
  transform: scale(1.15);
}

.nav-item.active img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15);
}

#nav_home.active img {
  filter: grayscale(0%) opacity(1);
  animation: rgb-glow-pulse 3s infinite linear;
}

#nav_valorant.active img {
  filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px rgba(255, 70, 85, 0.95));
}

#nav_gta5.active img {
  filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px rgba(34, 197, 94, 0.95));
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Custom cyber input adjustments for Riot theme */
.cyber-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.cyber-input.pl-10 {
  padding-left: 2.5rem;
}

.cyber-input:focus {
  border-color: var(--riot-accent);
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

/* Hide scrollbar for a cleaner look */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Neon Home View Tiles Hover Interactions */
.glow-card-cyan {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glow-card-cyan:hover {
  transform: scale(1.02);
  border-color: rgba(0, 240, 255, 0.5) !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25) !important;
}

.glow-card-pink {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glow-card-pink:hover {
  transform: scale(1.02);
  border-color: rgba(217, 0, 255, 0.5) !important;
  box-shadow: 0 0 25px rgba(217, 0, 255, 0.25) !important;
}

.btn-glow-cyan {
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-glow-cyan:hover {
  transform: scale(1.04);
  background-color: #33f3ff !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.8) !important;
}

.btn-glow-pink {
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-glow-pink:hover {
  transform: scale(1.04);
  background-color: rgba(217, 0, 255, 0.15) !important;
  box-shadow: 0 0 20px rgba(217, 0, 255, 0.5) !important;
}

/* Dark Grey Game Form Dropdown Custom Styles */
select, select option {
  background-color: #1A1B20 !important;
  color: #ffffff !important;
}

select:focus {
  border-color: var(--riot-accent) !important;
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.2) !important;
}

/* Landing Page Logo Styles */
.landing-logo {
  animation: rgb-glow-pulse 3s infinite linear;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-logo:hover {
  transform: scale(1.1);
}

/* RGB Pulse Animation for Logos */
@keyframes rgb-glow-pulse {
  0% {
    filter: drop-shadow(0 0 12px rgba(176, 38, 255, 0.85));
  }
  25% {
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.95));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.85));
  }
  75% {
    filter: drop-shadow(0 0 18px rgba(255, 70, 85, 0.95));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(176, 38, 255, 0.85));
  }
}

/* Universal narrow sidebar */
.igamer-sidebar {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  height: 100% !important;
  background-color: rgba(26, 27, 32, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  z-index: 20 !important;
  padding: 0 !important;
}

/* Sidebar Item (Buttons / Anchors) */
.sidebar-item {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #9CA3AF !important;
  cursor: pointer !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-item:hover {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.sidebar-item.active {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

/* Specific button styles for games vs search vs about */
.sidebar-item img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  filter: grayscale(100%) opacity(0.6) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-item:hover img {
  filter: grayscale(0%) opacity(0.9) !important;
  transform: scale(1.1) !important;
}

.sidebar-item.active img {
  filter: grayscale(0%) opacity(1) drop-shadow(0 0 8px rgba(var(--primary-accent-rgb, 255, 70, 85), 0.85)) !important;
  transform: scale(1.1) !important;
}

.sidebar-item i {
  font-size: 20px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-item:hover i {
  color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.1) !important;
}

.sidebar-item.active i {
  color: #fff !important;
  filter: drop-shadow(0 0 8px rgba(var(--primary-accent-rgb, 255, 70, 85), 0.85)) !important;
  transform: scale(1.1) !important;
}

/* Home Logo Button override (transparent background, no borders) */
.sidebar-logo-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.sidebar-logo-item img {
  filter: none !important;
  width: 32px !important;
  height: 32px !important;
}

/* Mobile Optimization Styles (< 768px) */
@media (max-width: 768px) {
  /* Bottom Navigation Dock for Mobile */
  .igamer-sidebar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    max-height: 56px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: none !important;
    border-radius: 0px !important;
    z-index: 50 !important;
    background: rgba(18, 19, 23, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 0 16px !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
  }

  .igamer-sidebar > div:first-child {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .igamer-sidebar nav {
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-grow: 0 !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  /* Right Slide-over Sidebar Drawer for Mobile (Dashboard & Find Gamers) */
  #rightSidebar,
  #filtersSidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    z-index: 60 !important;
    width: 85vw !important;
    max-width: 320px !important;
    min-width: 280px !important;
    background-color: rgba(18, 19, 23, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin-left: 0 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateX(0) !important;
  }

  #rightSidebar.collapsed,
  #filtersSidebar.collapsed {
    transform: translateX(100%) !important;
    width: 85vw !important;
    max-width: 320px !important;
    min-width: 280px !important;
    pointer-events: none !important;
    border-left-color: transparent !important;
  }

  #rightSidebar.collapsed > *:not(#toggleSidebarBtn),
  #filtersSidebar.collapsed > *:not(#toggleSidebarBtn) {
    display: none !important;
  }

  #rightSidebar #toggleSidebarBtn,
  #filtersSidebar #toggleSidebarBtn {
    pointer-events: auto !important;
    z-index: 70 !important;
  }

  /* Fixed sticky tab button on right screen edge when collapsed on mobile */
  #rightSidebar.collapsed #toggleSidebarBtn,
  #filtersSidebar.collapsed #toggleSidebarBtn {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 56px !important;
    border-radius: 8px 0 0 8px !important;
    background-color: #1A1B20 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-right: none !important;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.6) !important;
  }

  /* Mobile Content Padding for Bottom Bar */
  main,
  #centerMainPanel {
    margin-left: 0 !important;
    padding-bottom: 70px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #mainViewsContainer {
    padding: 16px 12px 80px 12px !important;
  }
}

@media (max-width: 480px) {
  .cyber-font {
    letter-spacing: 0.05em !important;
  }
}



