/* CSS Design System - Rawaim Gaming Cyber Aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --color-bg: #020609;
  --color-card: rgba(13, 21, 31, 0.85);
  --color-cyan: #00E5FF;
  --color-cyan-glow: rgba(0, 229, 255, 0.4);
  --color-blue: #168BFF;
  --color-text: #E8F1F5;
  --color-muted: #8293A3;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

/* Cyber Grid Background Pattern */
.bg-cyber-grid {
  background-color: #020609;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(2, 6, 9, 0.95);
  border-bottom-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  max-height: 44px !important;
  height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.8));
}

.brand-text {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #FFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: #A0B1C0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--color-cyan);
  text-shadow: 0 0 12px var(--color-cyan-glow);
}

/* User Profile Pill Badge (Compact & Perfectly Centered) */
.user-profile-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  background: rgba(13, 21, 31, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(10px);
  height: 42px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease;
}

.user-profile-badge:hover {
  border-color: #00E5FF;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.user-avatar-img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1.5px solid #00E5FF;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.user-name-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFF;
  white-space: nowrap;
  line-height: 1;
}

.user-logout-link {
  color: #FF5555;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 85, 85, 0.15);
  border: 1px solid rgba(255, 85, 85, 0.3);
  margin-left: 0.2rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.user-logout-link:hover {
  background: #FF5555;
  color: #FFF;
}

/* Typography & Title Effects */
.text-cyan { color: var(--color-cyan); }
.text-glow-cyan { text-shadow: 0 0 25px var(--color-cyan-glow), 0 0 40px var(--color-cyan); }
.text-muted { color: var(--color-muted); }

.hero-title {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* Glassmorphism Cards */
.cyber-card {
  background: var(--color-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.cyber-card:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Skin Selector Dashboard Layout */
.skin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .skin-layout {
    grid-template-columns: 1fr;
  }
}

.skin-cat-sidebar {
  background: rgba(13, 21, 31, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(16px);
}

.skin-cat-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #A0B1C0;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: all 0.25s ease;
  text-align: left;
}

.skin-cat-item:hover {
  background: rgba(0, 229, 255, 0.08);
  color: #00E5FF;
}

.skin-cat-item.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(22, 139, 255, 0.2) 100%);
  border-color: #00E5FF;
  color: #00E5FF;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* CT / T Team Toggle Buttons */
.team-toggle-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.team-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 21, 31, 0.8);
  color: #8293A3;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.team-btn[data-team="CT"].active {
  background: linear-gradient(135deg, rgba(37, 99, 255, 0.3) 0%, rgba(0, 229, 255, 0.3) 100%);
  border-color: #00E5FF;
  color: #00E5FF;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
}

.team-btn[data-team="T"].active {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.3) 0%, rgba(255, 59, 59, 0.3) 100%);
  border-color: #FF8C00;
  color: #FF8C00;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.3);
}

/* Skin Card & Active Equipped State */
.skin-card.equipped {
  border-color: #00E5FF !important;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.35) !important;
  background: rgba(13, 25, 40, 0.95) !important;
}

.equipped-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00E5FF;
  color: #020609;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
  letter-spacing: 0.05em;
}

.btn-cyber-select {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00E5FF;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

.btn-cyber-select:hover {
  background: #00E5FF;
  color: #020609;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

.btn-cyber-select.btn-equipped {
  background: #00E5FF;
  color: #020609;
  border-color: #00E5FF;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Buttons */
.btn-cyber-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #168BFF 100%);
  color: #020609;
  font-weight: 900;
  padding: 0.95rem 2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-cyber-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px rgba(0, 229, 255, 0.85);
  filter: brightness(1.1);
}

.btn-discord {
  background: #2563FF;
  color: #FFF;
  font-weight: 900;
  padding: 0.95rem 2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  box-shadow: 0 0 25px rgba(37, 99, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-discord:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 40px rgba(37, 99, 255, 0.8);
  background: #3B74FF;
}

/* Status Badges */
.status-dot-online {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
  display: inline-block;
}

.status-dot-offline {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF3B3B;
  box-shadow: 0 0 10px #FF3B3B;
  display: inline-block;
}

/* Animated Toast Container & Cyber Notification */
#toast-container {
  position: fixed;
  top: 95px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.cyber-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 400px;
  background: rgba(7, 16, 25, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #00E5FF;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  color: #FFF;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transform: translateX(120%);
  opacity: 0;
  animation: toastSlideIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cyber-toast.hide {
  animation: toastSlideOut 0.35s ease forwards;
}

.toast-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #00E5FF;
  flex-shrink: 0;
}

.toast-content-box {
  flex: 1;
}

.toast-title-text {
  font-size: 0.9rem;
  font-weight: 900;
  color: #FFF;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.toast-desc-text {
  font-size: 0.78rem;
  color: #A0B1C0;
  line-height: 1.3;
}

.toast-close-btn {
  background: none;
  border: none;
  color: #8293A3;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.toast-close-btn:hover {
  color: #FFF;
}

@keyframes toastSlideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Responsive Mobile Drawer */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 85px;
  left: 0;
  width: 100%;
  background: rgba(7, 16, 25, 0.95);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links, .nav-auth-desktop {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}
