/* WolfComunidad Main Stylesheet - Complete Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root, [data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-card: #121826;
  --bg-card-hover: #1a2235;
  --bg-header: rgba(11, 15, 25, 0.90);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-red: #eb3940;
  --accent-red-hover: #d32f36;
  --accent-gold: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-main: 0 10px 30px rgba(0,0,0,0.5);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.90);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-main: 0 10px 30px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.skip-link {
  position: absolute; top: -100px; left: 10px; background: var(--accent-red); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm); z-index: 1000; transition: top 0.2s;
}
.skip-link:focus { top: 10px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
}
.hdr-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text-main);
}
.brand-mark {
  font-size: 1.5rem; color: var(--accent-gold); filter: drop-shadow(0 0 8px rgba(245,158,11,0.6));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* MAIN NAV */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500;
  color: var(--text-muted); transition: all 0.2s ease;
}
.main-nav a:hover, .main-nav a.on {
  color: var(--text-main); background: rgba(255,255,255,0.06);
}
.main-nav a.on { border-bottom: 2px solid var(--accent-red); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

.nav-discord {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  background: #5865F2 !important; color: #fff !important; font-weight: 600 !important;
  border-radius: 20px !important; padding: 6px 14px !important; transition: transform 0.2s ease !important;
}
.nav-discord svg { width: 18px !important; height: 18px !important; fill: currentColor !important; flex-shrink: 0 !important; }
.nav-discord:hover { background: #4752C4 !important; transform: translateY(-1px); }

/* NAV USER & CONTROLS */
.nav-user { display: flex; align-items: center; gap: 12px; }
.online-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; background: rgba(16, 185, 129, 0.15); color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.online-pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.theme-toggle {
  background: none; border: 1px solid var(--border-color); color: var(--text-main);
  padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.08); }

.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 30px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-red), #9333ea);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.1; font-size: 0.85rem; }
.user-meta small { font-size: 0.7rem; color: var(--text-muted); }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; }

/* MOBILE RESPONSIVENESS FOR NAV */
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border-color);
    flex-direction: column; padding: 16px; gap: 8px; box-shadow: var(--shadow-main);
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem;
  background: var(--accent-red); color: #fff; border: none; cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(235, 57, 64, 0.35); text-align: center;
}
.btn:hover { background: var(--accent-red-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(235, 57, 64, 0.5); }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.btn.ghost { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,0.08); }
.btn.sec { background: rgba(255,255,255,0.08); color: var(--text-main); box-shadow: none; border: 1px solid var(--border-color); }
.btn.sec:hover { background: rgba(255,255,255,0.14); }
.btn.block { width: 100%; display: flex; }

/* LAYOUT & CARDS */
.page { max-width: 1200px; margin: 28px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow-main);
}
.card.tight { padding: 20px; }

.card.hero {
  background: linear-gradient(135deg, rgba(235,57,64,0.12) 0%, var(--bg-card) 50%, rgba(59,130,246,0.1) 100%);
  border: 1px solid rgba(235, 57, 64, 0.3); padding: 48px 40px; text-align: left;
}
.hero-bg-mark {
  position: absolute; right: 20px; bottom: -20px; font-size: 15rem; opacity: 0.04; pointer-events: none; user-select: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent-red); margin-bottom: 12px;
}
.ok-text { color: var(--accent-green); }
.card.hero h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.card.hero h1 small { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); display: block; margin-top: 4px; }
.card.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 650px; margin-bottom: 24px; }

/* STATS GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 24px 0; }
.stat {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 16px; text-align: center; font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
}
.stat b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.stat.gold b { color: var(--accent-gold); }
.stat.ok b { color: var(--accent-green); }
.stat.wolf b { color: var(--accent-red); }
.stat.blue b { color: var(--accent-blue); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* SIDE LAYOUT */
.side-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .side-layout { grid-template-columns: 1fr; } }

/* EVENTS & CARDS */
.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-card {
  display: block; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 18px; transition: all 0.2s ease;
}
.event-card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.ev-head { display: flex; gap: 14px; align-items: flex-start; }
.ev-icon { font-size: 2rem; background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: var(--radius-sm); }
.ev-desc { margin: 10px 0; color: var(--text-muted); font-size: 0.9rem; }
.ev-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; font-size: 0.8rem; margin: 12px 0; }
.ev-meta div { background: rgba(0,0,0,0.2); padding: 6px 10px; border-radius: 6px; }
.ev-meta b { display: block; color: var(--text-main); }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; margin-top: 10px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.08); color: var(--text-main);
}
.badge.gold { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge.ok { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge.rank { background: rgba(235, 57, 64, 0.15); color: var(--accent-red); border: 1px solid rgba(235, 57, 64, 0.3); }

/* FEATURES & STEPS */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.feature { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 20px; border-radius: var(--radius-md); }
.fico { font-size: 2rem; margin-bottom: 8px; }
.feature b { display: block; font-size: 1rem; color: var(--text-main); margin-bottom: 6px; }
.feature span { font-size: 0.88rem; color: var(--text-muted); line-height: 1.4; display: block; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.step { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 18px; border-radius: var(--radius-md); position: relative; }
.step em { font-style: normal; font-size: 2rem; font-weight: 900; color: var(--accent-red); opacity: 0.5; float: right; }
.step b { display: block; font-size: 1rem; color: var(--text-main); margin-bottom: 4px; }
.step span { font-size: 0.85rem; color: var(--text-muted); }

/* TABLES & RANKINGS */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.table-wrap { overflow-x: auto; width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
th { background: rgba(255,255,255,0.04); color: var(--text-muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.top1 { background: rgba(245, 158, 11, 0.06); }
.top2 { background: rgba(203, 213, 225, 0.04); }
.top3 { background: rgba(180, 83, 9, 0.05); }

.pos { font-weight: 800; text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.hl { color: var(--accent-gold); font-weight: 700; }
.muted { color: var(--text-muted); }

/* PODIUM */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin: 30px 0; }
.pd { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px 16px; text-align: center; flex: 1; max-width: 180px; box-shadow: var(--shadow-main); }
.pd.p1 { order: 2; height: 170px; border-color: rgba(245, 158, 11, 0.5); background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, var(--bg-card) 100%); }
.pd.p2 { order: 1; height: 145px; border-color: rgba(148, 163, 184, 0.4); }
.pd.p3 { order: 3; height: 130px; border-color: rgba(180, 83, 9, 0.4); }
.crown { font-size: 2rem; display: block; margin-bottom: 6px; }
.pd .name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .val { font-weight: 800; color: var(--accent-gold); margin-top: 6px; }

/* TABS & PILL NAV */
.tabs, .pill-nav { display: flex; gap: 6px; margin-bottom: 16px; }
.tab, .pill-nav a {
  padding: 8px 16px; border-radius: 20px; font-size: 0.88rem; font-weight: 600;
  background: rgba(255,255,255,0.04); color: var(--text-muted); transition: all 0.2s;
}
.tab.on, .pill-nav a.hl { background: var(--accent-red); color: #fff; }

/* FORMS & INPUTS */
.input-group { display: flex; gap: 8px; }
input[type="text"], input[type="password"], input[type="search"], input[name="code"] {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); color: var(--text-main);
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; width: 100%;
  transition: border-color 0.2s;
}
input:focus { outline: none; border-color: var(--accent-red); }
.input-group button {
  padding: 10px 20px; background: var(--accent-red); color: #fff; border: none;
  border-radius: var(--radius-sm); font-weight: 700; cursor: pointer;
}
.req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.req-list li { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.req-list span { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty .big { font-size: 3rem; margin-bottom: 10px; }

/* DISCORD BANNER */
.discord-banner {
  background: linear-gradient(135deg, rgba(88,101,242,0.2) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(88,101,242,0.3); display: flex; gap: 16px; align-items: center;
}
.dico { font-size: 2.5rem; }

/* FOOTER */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 48px 24px 24px; margin-top: 48px;
}
.foot-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 768px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-inner { grid-template-columns: 1fr; } }
.foot-brand { font-size: 1.3rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.foot-col b { display: block; margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; color: var(--text-main); letter-spacing: 0.5px; }
.foot-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.foot-col a:hover { color: var(--text-main); }
.foot-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border-color); text-align: center; font-size: 0.85rem; color: var(--text-muted); }

.to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-red); color: #fff; border: none; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s; z-index: 90;
}
.to-top:hover { transform: translateY(-3px); }
