/* ============================================================
   style.css — Couch Crew Global Styles
   Primarna barva ozadja: ČRNA (#000000)
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --color-bg:        #000000;
  --color-surface:   #0d0d0d;
  --color-card:      #111111;
  --color-border:    #1e1e1e;
  --color-border-md: #252525;
  --color-primary:   #00c7b6;
  --color-primary-dim: rgba(0,199,182,.16);
  --color-primary-border: rgba(0,199,182,.28);
  --color-text:      #ffffff;
  --color-text-muted: rgba(125,146,168,.95);
  --color-text-dim:  #64748b;
  --color-gold:      #E8D76F;
  --color-f1-red:    #e10600;
  --color-ucl-blue:  #003399;
  --color-nfl-blue:  #013369;
  --font-display:    'Space Grotesk', sans-serif;
  --radius-sm:       0.5rem;
  --radius-md:       0.75rem;
  --radius-lg:       1rem;
  --radius-xl:       1.25rem;
  --radius-2xl:      1.5rem;
  --nav-height:      84px;
}

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

html { height: 100%; }

body {
  min-height: 100dvh;
  background-color: var(--color-bg) !important;
  color: var(--color-text);
  font-family: var(--font-display);
  padding-bottom: calc(var(--nav-height) + 36px);
  -webkit-font-smoothing: antialiased;
}

/* Tailwind dark overrides - force black bg */
.dark\:bg-background-dark,
.bg-background-dark,
.dark\:bg-background-dark\/80,
.bg-background-light {
  background-color: var(--color-bg) !important;
}

/* ---- Scrollbar ---- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Top Navigation Bar ---- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

/* ---- Bottom Navigation Bar ---- */
.bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(440px, 100%);
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
}

.navshell {
  background: rgba(0,0,0,.97) !important;
  border: 1px solid var(--color-border-md);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.75);
  padding: 10px 10px;
}

.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.navitem {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 16px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.navitem .navicon {
  font-variation-settings: "FILL" 0,"wght" 500,"GRAD" 0,"opsz" 24;
  font-size: 24px;
  color: var(--color-text-muted);
}

.navitem span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .35px;
}

.navitem.active {
  background: var(--color-primary-dim);
  border: 1px solid var(--color-primary-border);
  color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0,199,182,.06) inset;
}

.navitem.active .navicon {
  color: var(--color-primary);
}

/* SEASON nav item */
.seasonmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .82;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: inherit;
}
.seasonmark .top,
.seasonmark .bottom { font-size: 15px; font-style: italic; }
.seasonmark .bottom { margin-top: -2px; }
.seasonlabel { font-size: 10px; font-weight: 800; letter-spacing: .35px; }

/* ---- Card ---- */
.cc-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cc-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.cc-card-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: var(--color-text-dim);
}

/* ---- Buttons ---- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
  border: none;
  padding: 10px 20px;
}

.cc-btn-primary {
  background: var(--color-primary);
  color: #000;
}
.cc-btn-primary:hover { opacity: .88; }

.cc-btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.cc-btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---- League bubble / pill ---- */
.league-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-card);
  border: 1px solid var(--color-border-md);
  border-radius: 24px;
  padding: 14px 20px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-text);
  width: 100%;
}
.league-bubble:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-dim);
}

/* ---- Results Season grid ---- */
.season-grid-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.season-grid-row + .season-grid-row {
  border-top: 1px solid var(--color-border);
}

.season-pos-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
}

.season-bubble {
  display: inline-flex;
  max-width: 100%;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  background: var(--color-card);
  color: var(--color-text);
}

.season-bubble.left { justify-content: flex-start; }
.season-bubble.right { justify-content: flex-end; float: right; }

/* ---- Filter chips ---- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background .15s;
}

.filter-chip.active {
  background: var(--color-primary);
  color: #000;
}

.filter-chip:not(.active) {
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border-md);
}

/* ---- Dividers ---- */
.cc-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ---- Misc utilities ---- */
.text-primary   { color: var(--color-primary) !important; }
.bg-primary     { background-color: var(--color-primary) !important; }
.text-gold      { color: var(--color-gold) !important; }
.text-f1        { color: var(--color-f1-red) !important; }
.text-muted     { color: var(--color-text-dim) !important; }

/* ---- Profile header link (top-left) ---- */
.profile-toplink {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.profile-toplink:hover .profile-icon { color: var(--color-primary); }
.profile-icon {
  font-size: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: color .15s;
}

/* ---- Modal ---- */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
.cc-modal-overlay.hidden { display: none; }

.cc-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--color-card);
  border: 1px solid var(--color-border-md);
  border-radius: 28px 28px 0 0;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cc-modal-body {
  overflow-y: auto;
  padding: 20px;
}

/* ---- Standings rows ---- */
.standings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.standings-row + .standings-row { border-top: 1px solid var(--color-border); }
.standings-rank {
  font-size: 11px;
  font-weight: 900;
  color: var(--color-text-dim);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}
.standings-name { font-size: 0.875rem; font-weight: 700; }
.standings-pts  { font-size: 0.875rem; font-weight: 900; color: var(--color-primary); }

/* ---- Animation ---- */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }
.animate-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
