/**
 * HARDCORE ESPORTS — MASTER DESIGN SYSTEM
 * Professional International Esports Organization Visual Identity
 * Palette: #050B0D (Primary), #081315 (Secondary), #0B191C (Surface),
 *          #00E5E5 (Primary Cyan), #00BFC7 (Secondary Cyan), #FFFFFF (White),
 *          #9BAFB3 (Muted Text), #183438 (Borders)
 */

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

:root {
  --bg-primary: #050B0D;
  --bg-secondary: #081315;
  --bg-surface: #0B191C;
  --bg-surface-elevated: #102326;
  
  --accent-cyan: #00E5E5;
  --accent-turquoise: #00BFC7;
  --accent-glow: rgba(0, 229, 229, 0.25);
  
  --text-white: #FFFFFF;
  --text-muted: #9BAFB3;
  --text-dim: #607579;
  
  --border-color: #183438;
  --border-hover: #00E5E5;
  
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  --font-display: 'Oxanium', 'Rajdhani', -apple-system, sans-serif;
  --font-subdisplay: 'Rajdhani', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Sharp Technical Typography */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
}

.font-subdisplay {
  font-family: var(--font-subdisplay);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.font-mono-tag {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Tactical Angular Geometry (Chamfered Corners) */
.chamfer-sm {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.chamfer-md {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.chamfer-lg {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.chamfer-top-right {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.chamfer-bottom-right {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

/* Asymmetric Eyebrow Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  background: rgba(0, 229, 229, 0.08);
  border-left: 2px solid var(--accent-cyan);
}

.eyebrow-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #EF4444;
  padding: 0.25rem 0.75rem;
  background: rgba(239, 68, 68, 0.08);
  border-left: 2px solid #EF4444;
}

/* Strategic Buttons (Sharper, High Impact) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  background: var(--accent-cyan);
  color: #050B0D;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--accent-cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 18px rgba(0, 229, 229, 0.25);
}

.btn-primary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #050B0D;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 229, 229, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  background: var(--bg-surface);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--border-color);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--accent-cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-cyan:hover {
  background: rgba(0, 229, 229, 0.1);
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(239, 68, 68, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-danger:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

/* Strategic Surfaces (Non-Generic, Editorial Layout Containers) */
.esports-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  position: relative;
}

.esports-surface-hover:hover {
  border-color: var(--accent-cyan);
  transition: border-color 0.25s ease;
}

/* Subtle Technical Grid / Accents */
.tech-hairline {
  border-top: 1px solid var(--border-color);
}

.tech-divider-v {
  width: 1px;
  background: var(--border-color);
}

/* Tactical Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border: 1px solid transparent;
}

.status-pill-live {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.status-pill-open {
  background: rgba(0, 229, 229, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 229, 0.4);
}

.status-pill-completed {
  background: rgba(155, 175, 179, 0.12);
  color: var(--text-muted);
  border-color: var(--border-color);
}

.status-pill-approved {
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.4);
}

/* Technical Sports Ranking Table */
.esports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.esports-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.esports-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(24, 52, 56, 0.6);
  color: var(--text-white);
  vertical-align: middle;
}

.esports-table tr:hover td {
  background: rgba(0, 229, 229, 0.03);
}

/* Professional Input Controls */
.hce-input, .hce-select, .hce-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.hce-input:focus, .hce-select:focus, .hce-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 229, 0.2);
}

.hce-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Card Compatibility layer (Refactored to sharp technical surfaces) */
.hce-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 1.5rem;
  position: relative;
}

.hce-card-elevated {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 1.5rem;
}

/* Broadcast Overlay / Vignette */
.cinematic-vignette {
  background: linear-gradient(180deg, rgba(5, 11, 13, 0.2) 0%, rgba(5, 11, 13, 0.85) 75%, #050B0D 100%);
}

.cinematic-vignette-sides {
  background: linear-gradient(90deg, #050B0D 0%, rgba(5, 11, 13, 0.4) 30%, rgba(5, 11, 13, 0.4) 70%, #050B0D 100%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Image Hover Zoom */
.zoom-on-hover {
  overflow: hidden;
}
.zoom-on-hover img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.zoom-on-hover:hover img {
  transform: scale(1.05);
}

/* Tactical Corner Accents & Console Surfaces */
.console-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  position: relative;
  transition: border-color 0.2s ease;
}
.console-card:hover {
  border-color: rgba(0, 229, 229, 0.4);
}

.hud-bracket {
  position: relative;
}
.hud-bracket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
  pointer-events: none;
}
.hud-bracket::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
  pointer-events: none;
}

.hud-bracket-amber::before {
  border-color: #F59E0B;
}
.hud-bracket-amber::after {
  border-color: #F59E0B;
}

/* Compact High-Density Console Tables */
.console-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.825rem;
}
.console-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.console-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(24, 52, 56, 0.5);
  color: #D3E0E2;
  vertical-align: middle;
}
.console-table tbody tr:hover {
  background: rgba(16, 35, 38, 0.6);
}
.console-table tbody tr:last-child td {
  border-bottom: none;
}
