/* ==========================================================================
   ADDIX MEDIA (BR ESPORTS PRIVATE LIMITED) - CORE DESIGN SYSTEM
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-dark: #080C14;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(25, 36, 58, 0.85);
  --bg-nav: rgba(11, 15, 25, 0.85);

  --primary-orange: #FF6A00;
  --primary-amber: #FF9000;
  --primary-gradient: linear-gradient(135deg, #FF9000 0%, #FF6A00 50%, #E04800 100%);
  --glow-orange: rgba(255, 106, 0, 0.35);

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-active: rgba(255, 106, 0, 0.5);

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --shadow-glow: 0 10px 30px -5px rgba(255, 106, 0, 0.3);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dynamic Radial Glow Background */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, rgba(8, 12, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-header .tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: var(--primary-amber);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Glassmorphism Components */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-orange);
  color: #FFFFFF;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  height: 48px;
  width: 48px;
}

.nav-title-group {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.nav-subtitle {
  font-size: 0.72rem;
  color: var(--primary-amber);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.3);
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--primary-amber);
  font-weight: 600;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 0 10px var(--primary-orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
  font-size: 3.8rem;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Matchmaker Widget */
.matchmaker-widget {
  background: linear-gradient(145deg, rgba(20, 29, 47, 0.9), rgba(11, 15, 25, 0.95));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-glow);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.widget-title h3 {
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control, select.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: all 0.25s ease;
}

.form-control:focus, select.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.25);
}

select.form-control option {
  background: #111827;
  color: #FFFFFF;
}

.match-result-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 106, 0, 0.08);
  border: 1px dashed var(--primary-orange);
  border-radius: var(--radius-md);
  display: none;
}

.match-result-box.active {
  display: block;
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Niche Showcase Cards */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.niche-card {
  text-align: center;
  padding: 28px 20px;
}

.niche-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
  border-radius: 18px;
  background: rgba(255, 106, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-orange);
  border: 1px solid rgba(255, 106, 0, 0.2);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card .service-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 20px;
  right: 24px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-orange);
  font-weight: bold;
}

/* Creator Roster Cards */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.creator-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.creator-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.creator-info h4 {
  font-size: 1.15rem;
}

.creator-info span {
  font-size: 0.85rem;
  color: var(--primary-amber);
}

.creator-meta {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.meta-box span.val {
  display: block;
  font-weight: 700;
  color: #FFFFFF;
}

.meta-box span.lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  padding: 0;
  overflow: hidden;
}

.blog-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

.blog-body {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary-amber);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 12px;
}

.blog-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.blog-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* GST Banner & Transparency */
.gst-banner {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.15) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.gst-details-list {
  list-style: none;
}

.gst-details-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.gst-details-list li span.label {
  color: var(--text-muted);
}

.gst-details-list li span.val {
  font-weight: 700;
  color: #FFFFFF;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #111827;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--danger);
}

/* Admin Dashboard Elements */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
}

.admin-sidebar {
  background: rgba(11, 15, 25, 0.95);
  border-right: 1px solid var(--border-light);
  padding: 30px 20px;
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
}

.admin-menu a:hover, .admin-menu a.active {
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary-amber);
  border-left: 3px solid var(--primary-orange);
}

.admin-main {
  padding: 40px;
  background: var(--bg-dark);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.admin-stat-card {
  padding: 24px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.admin-stat-card .num {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.admin-stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Data Tables */
.table-container {
  overflow-x: auto;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-pending { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.badge-confirmed { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.badge-completed { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.badge-cancelled { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

/* Printable Invoice CSS */
@media print {
  body * {
    visibility: hidden;
  }
  #printableInvoice, #printableInvoice * {
    visibility: visible;
  }
  #printableInvoice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 40px;
  }
  .no-print {
    display: none !important;
  }
}

/* Printable Invoice Container */
.invoice-box {
  background: #FFFFFF;
  color: #1F2937;
  padding: 40px;
  border-radius: var(--radius-md);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.invoice-header h2 {
  color: #111827;
}

/* Footer */
.footer {
  background: #05080E;
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px 0;
  margin-top: auto;
}

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

.footer-about p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .gst-banner {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}
