/* ==========================================================================
   ZEST TOURNAMENT - CORE DESIGN SYSTEM & STYLES
   Specialized for Free Fire Esports & App Distribution
   ========================================================================== */

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

:root {
  /* Brand Color Palette */
  --color-primary: #FF5E00;
  --color-primary-glow: rgba(255, 94, 0, 0.4);
  --color-primary-light: #FF8533;
  --color-primary-dark: #D44200;
  
  --color-secondary: #FFB800;
  --color-secondary-glow: rgba(255, 184, 0, 0.35);
  
  --color-accent-cyan: #00F0FF;
  --color-accent-green: #00E676;
  --color-accent-red: #FF2A55;
  
  /* Dark Gaming Background Surfaces */
  --bg-main: #090C12;
  --bg-surface: #101522;
  --bg-surface-elevated: #161D2F;
  --bg-surface-card: rgba(20, 27, 43, 0.85);
  --bg-surface-translucent: rgba(16, 21, 34, 0.75);
  --bg-surface-hover: #1E273D;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 94, 0, 0.45);
  --border-gold: rgba(255, 184, 0, 0.4);
  --border-cyan: rgba(0, 240, 255, 0.35);
  
  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #9FA9BF;
  --text-muted: #626D82;
  --text-fire: #FFA048;
  
  /* Font Families */
  --font-heading: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow-primary: 0 0 25px rgba(255, 94, 0, 0.45);
  --shadow-glow-gold: 0 0 25px rgba(255, 184, 0, 0.4);
  
  /* Layout */
  --container-width: 1240px;
  --header-height: 76px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% -20%, rgba(255, 94, 0, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(255, 184, 0, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-secondary); }
.text-fire { color: var(--color-primary); }
.text-cyan { color: var(--color-accent-cyan); }
.text-green { color: var(--color-accent-green); }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge-fire {
  background: rgba(255, 94, 0, 0.15);
  color: var(--color-primary-light);
  border: 1px solid rgba(255, 94, 0, 0.35);
}

.badge-live {
  background: rgba(255, 42, 85, 0.18);
  color: #FF4D70;
  border: 1px solid rgba(255, 42, 85, 0.4);
  position: relative;
}

.badge-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF2A55;
  box-shadow: 0 0 10px #FF2A55;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #FF2A55; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.badge-gold {
  background: rgba(255, 184, 0, 0.14);
  color: var(--color-secondary);
  border: 1px solid rgba(255, 184, 0, 0.35);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(9, 12, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(9, 12, 18, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(255, 94, 0, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #FF7700, #FF2200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  fill: #FFF;
}

.logo-text span {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

/* Main Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6600 0%, #E63900 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 85, 0, 0.6);
  background: linear-gradient(135deg, #FF7711 0%, #F54000 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #FFB800 0%, #D48800 100%);
  color: #0A0D14;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 184, 0, 0.55);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.2rem;
}

/* Section Header Typography */
.section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  margin-bottom: 50px;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 12px auto 0;
}

/* Footer */
.site-footer {
  background: #06080D;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  color: #FFF;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
