/* ── KitchenCash Global Stylesheet — Dark Theme ── */

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

:root {
  /* ── DARK BACKGROUND SYSTEM ── */
  --bg:           #07080E;
  --surface:      #0D0F1C;
  --surface-2:    #141728;

  /* ── COMPAT ALIASES (old var names used in page files) ── */
  --navy:         #07080E;
  --navy-mid:     #0D0F1C;
  --white:        #EDF0FA;
  --off-white:    #0D0F1C;
  --gray:         #0D0F1C;
  --gray-mid:     #141728;
  --gray-light:   #2E3148;
  --black:        #07080E;

  /* ── PRIMARY ACCENT (green) ── */
  --accent:       #00E096;
  --accent-hover: #00C886;
  --accent-glow:  rgba(0, 224, 150, 0.18);
  --lime:         #00E096;
  --lime-dark:    #00C886;
  --lime-glow:    rgba(0, 224, 150, 0.18);
  --green:        #00E096;
  --green-dark:   #00C886;
  --green-glow:   rgba(0, 224, 150, 0.18);

  /* ── SECONDARY ACCENT (clay/orange) ── */
  --clay:         #E05A30;
  --clay-hover:   #C44E28;
  --clay-glow:    rgba(224, 90, 48, 0.18);
  --yellow:       #E05A30;
  --yellow-dark:  #C44E28;
  --yellow-glow:  rgba(224, 90, 48, 0.18);
  --violet:       #E05A30;
  --violet-dark:  #C44E28;
  --violet-glow:  rgba(224, 90, 48, 0.18);
  --amber:        #E05A30;
  --amber-glow:   rgba(224, 90, 48, 0.12);

  /* ── TEXT ── */
  --text:         #EDF0FA;
  --text-mid:     #A0A8CC;
  --muted:        #636882;
  --muted-2:      #2E3148;

  /* ── BORDERS & SHADOWS ── */
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow:       0 2px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 8px 40px rgba(0, 0, 0, 0.5);

  /* ── GRADIENTS ── */
  --gradient:      linear-gradient(135deg, #00E096 0%, #00B4FF 100%);
  --gradient-warm: linear-gradient(135deg, #E05A30 0%, #00E096 100%);

  /* ── TYPOGRAPHY ── */
  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* ── RADIUS ── */
  --radius:    10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: rgba(7, 8, 14, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; letter-spacing: 0.01em; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--text); }
.nav-login { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-login:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #000; padding: 10px 22px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.25s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 140px 60px 80px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  background: var(--bg);
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(0,224,150,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(224,90,48,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.page-header > * { position: relative; }
.page-header.dark-bg { background: var(--bg); border-bottom: none; }
.page-header.dark-bg .section-title { color: var(--text); }
.page-header.dark-bg .section-sub { color: var(--muted); }
.page-header.dark-bg .section-tag { color: var(--accent); }

.section-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: inline-block; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--text); }
.section-sub { font-size: 17px; color: var(--muted); font-weight: 400; max-width: 520px; line-height: 1.7; }

/* ── BUTTONS ── */
.btn-primary { background: var(--accent); color: #000; padding: 14px 32px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; transition: all 0.25s; display: inline-block; cursor: pointer; border: none; font-family: var(--font-body); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost { color: var(--muted); padding: 14px 32px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; display: inline-block; }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: var(--surface); }
.btn-dark { background: var(--accent); color: #000; padding: 18px 52px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.2s; display: inline-block; }
.btn-dark:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 36px var(--accent-glow); }

/* ── TOURNAMENT CARDS ── */
.tourn-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden; }
.tourn-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gradient); border-radius: 4px 0 0 4px; opacity: 0; transition: opacity 0.25s; z-index: 1; }
.tourn-card > * { position: relative; z-index: 2; }
.tourn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,224,150,0.2); }
.tourn-card:hover::before { opacity: 1; }
.tourn-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-open { background: var(--accent-glow); color: var(--accent); }
.badge-hot { background: var(--clay-glow); color: var(--clay); }
.badge-full { background: rgba(255,255,255,0.06); color: var(--muted); }
.badge-level { background: rgba(255,255,255,0.06); color: var(--muted); }
.tourn-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; color: var(--text); }
.tourn-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.tourn-prize { font-family: var(--font-display); font-size: 44px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 4px; letter-spacing: -0.02em; }
.tourn-prize-label { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.tourn-spots { margin-bottom: 16px; }
.spots-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.spots-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.spots-fill { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 0.6s ease; }
.spots-fill.hot { background: linear-gradient(90deg, var(--clay), #FF7A50); }
.tourn-footer { display: flex; justify-content: space-between; align-items: center; }
.tourn-entry { font-size: 13px; color: var(--muted); }
.tourn-entry strong { color: var(--text); font-weight: 700; }
.btn-enter { background: var(--accent); color: #000; padding: 9px 18px; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; font-family: var(--font-body); display: inline-block; }
.btn-enter:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.btn-enter.disabled { background: rgba(255,255,255,0.06); color: var(--muted); cursor: not-allowed; pointer-events: none; }

/* ── FORMS ── */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.01em; color: var(--text); }
.form-group { margin-bottom: 18px; }
.form-label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: block; font-weight: 600; }
.form-input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 13px 16px; border-radius: 8px; font-size: 15px; font-family: var(--font-body); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--surface); }
.form-input::placeholder { color: var(--muted); }
select.form-input { cursor: pointer; }
option { background: var(--surface); color: var(--text); }
.form-submit { width: 100%; background: var(--accent); color: #000; padding: 15px; border-radius: 8px; border: none; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: all 0.2s; margin-top: 8px; }
.form-submit:hover { background: var(--accent-hover); box-shadow: 0 6px 24px var(--accent-glow); }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.6; }

/* ── FOOTER CTA + FOOTER ── */
.footer-cta {
  padding: 100px 60px;
  background: var(--surface);
  text-align: center;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
.footer-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,224,150,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.footer-cta .section-title { color: var(--text); position: relative; }
.footer-cta p { color: var(--muted); font-size: 17px; margin: 16px 0 44px; position: relative; }
footer {
  background: var(--bg);
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-est { font-size: 11px; color: var(--muted-2); font-family: var(--font-mono); letter-spacing: 0.1em; }

/* ── SECTION WRAPPER ── */
.section-wrap { padding: 100px 60px; }
.section-wrap.gray { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tourn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* ── MISC ── */
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 7px; animation: pulse 2s infinite; }
.error-msg { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2); border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #EF4444; margin-bottom: 16px; display: none; }
.success-msg { background: rgba(0,224,150,0.08); border: 1px solid rgba(0,224,150,0.2); border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--accent); margin-bottom: 16px; display: none; }

/* ── GRADIENT TEXT ── */
.g-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.g-text-warm { background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes scrollX  { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .page-header { padding: 110px 20px 60px; }
  .section-wrap { padding: 70px 20px; }
  .tourn-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  footer { flex-direction: column; text-align: center; padding: 32px 20px; }
  .footer-cta { padding: 80px 20px; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  footer { padding: 30px 20px; }
}
