/* ═══════════════════════════════════════════════════════
   FOGUEO — assets/css/skyting.css  v3.5
   Identidad Deportiva Oficial · Red de Patinaje de Velocidad
   Paleta: Verde Velocidad de Pista & Azul Marino Profundo
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Brand Tokens FOGUEO — Verde Pista & Azul Marino */
  --brand-green:       #00C853;
  --brand-green-hover: #00A343;
  --brand-green-dim:   rgba(0, 200, 83, 0.08);
  --brand-green-glow:  rgba(0, 200, 83, 0.25);
  
  --brand-navy:        #0A192F;
  --brand-navy-light:  #112240;
  --brand-navy-card:   #1E293B;

  --dark:       #0A192F;
  --dark-soft:  #1E293B;
  --gray-sub:   #64748B;
  --gray-light: #94A3B8;

  /* Clean Surfaces */
  --bg:         #F8FAFC;
  --surface:    #FFFFFF;
  --card:       #FFFFFF;
  --elevated:   #F1F5F9;
  --border:     #E2E8F0;
  --border-act: #00C853;

  /* Typography */
  --text:   #0A192F;
  --text-2: #334155;
  --text-3: #64748B;

  /* Accents */
  --green:     #00C853;
  --cyan:      #0284C7;
  --blue:      #0369A1;
  --red:       #E11D48;
  --amber:     #D97706;

  /* Layout Tokens */
  --sidebar-w: 240px;
  --nav-h:     58px;
  --r:    10px;
  --r-sm: 6px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.04);
  --shadow: 0 4px 14px rgba(10, 25, 47, 0.05);
  --shadow-lg: 0 12px 28px rgba(10, 25, 47, 0.08);
  --tr: all 0.18s ease-in-out;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; color: var(--text); }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

/* ── TOPBAR ESTILO MODERNO DEPORTIVO ─────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(10, 25, 47, 0.03);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.fogueo-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--brand-navy);
}

.fogueo-brand-logo:hover {
  opacity: 0.92;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-nav-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-3);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: var(--tr);
}

.topbar-nav-link:hover {
  color: var(--brand-navy);
  background: var(--elevated);
}

.topbar-nav-link.active {
  color: var(--brand-navy);
  background: var(--brand-green-dim);
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  width: 240px;
  transition: var(--tr);
}

.topbar-search-wrap:focus-within {
  border-color: var(--brand-green);
  background: #FFF;
  box-shadow: 0 0 0 3px var(--brand-green-glow);
  width: 270px;
}

.topbar-search-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  width: 100%;
}

.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 460px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 25, 47, 0.15);
  z-index: 99999;
  padding: 8px 0;
}

.search-dropdown-section-title {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.5px;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  color: #0A192F;
  transition: background 0.15s ease;
  border-bottom: 1px solid #F1F5F9;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: #F0FDF4;
}

.search-dropdown-item .ath-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0A192F;
  color: #00C853;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #00C853;
}

.search-dropdown-item .ath-info {
  flex: 1;
  min-width: 0;
}

.search-dropdown-item .ath-name {
  font-size: 13px;
  font-weight: 800;
  color: #0A192F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-item .ath-sub {
  font-size: 11.5px;
  color: #00C853;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-footer {
  padding: 10px 14px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #00C853;
  cursor: pointer;
}

.search-dropdown-footer:hover {
  background: #F1F5F9;
  text-decoration: underline;
}

/* ── BOTONES OFICIALES FOGUEO ───────────────────────────── */
.btn-primary {
  background: var(--brand-green);
  color: #0A192F;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  transition: var(--tr);
  box-shadow: 0 2px 6px rgba(0, 200, 83, 0.25);
}

.btn-primary:hover {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 200, 83, 0.35);
}

.btn-navy {
  background: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  transition: var(--tr);
}

.btn-navy:hover {
  background: #112240;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFF;
  color: var(--text-2);
  border: 1px solid var(--border);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  transition: var(--tr);
}

.btn-secondary:hover {
  background: var(--elevated);
  border-color: #CBD5E1;
  color: var(--text);
}

/* ── CARDS LIMPIAS Y ELEVADAS ───────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}

.card:hover {
  box-shadow: var(--shadow);
}

/* ── FEED DEPORTIVO DE ACTIVIDADES ──────────────────────── */
.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--tr);
}

.feed-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow);
}

.feed-card-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.athlete-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid #E2E8F0;
}

.athlete-meta {
  flex: 1;
  min-width: 0;
}

.athlete-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.activity-subline {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.feed-card-body {
  padding: 0 20px 16px;
}

.activity-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Métricas Limpias Horizontales */
.stats-grid-clean {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 0;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.stat-block {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stat-val {
  font-size: 19px;
  font-weight: 900;
  color: var(--brand-navy);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Botón Candela (Kudos) */
.btn-candela {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--elevated);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: var(--tr);
}

.btn-candela:hover {
  background: var(--brand-green-dim);
  color: #0A192F;
  border-color: rgba(0, 200, 83, 0.4);
}

.btn-candela.fired {
  background: var(--brand-green-dim);
  color: #0A192F;
  border-color: var(--brand-green);
  box-shadow: 0 0 10px var(--brand-green-glow);
}

.feed-card-footer {
  padding: 10px 20px;
  background: #FAFAFA;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── FORMULARIOS Y CONTROLES ────────────────────────────── */
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  transition: var(--tr);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

/* ── TOAST NOTIFICATIONS ────────────────────────────────── */
#toast, #skyToast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--brand-navy);
  color: #FFF;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.25s ease;
  pointer-events: none;
  border-left: 4px solid var(--brand-green);
}

#toast.show, #skyToast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── BADGES DEPORTIVOS ──────────────────────────────────── */
.badge-green {
  background: var(--brand-green-dim);
  color: #0A192F;
  border: 1px solid rgba(0, 200, 83, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-navy {
  background: var(--brand-navy);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
