/* ===== VARIABLES ===== */
:root {
  --gold: #c9a84c;
  --gold-light: #e6cc80;
  --gold-dark: #8a6d2b;
  --bg-dark: #060a10;
  --bg-section: #0a0f1a;
  --bg-card: linear-gradient(160deg, rgba(20,18,12,0.92), rgba(10,10,8,0.96));
  --text-light: #e8e0d0;
  --text-muted: #9a8e7a;
  --border-gold: rgba(201,168,76,0.25);
  --glow-gold: rgba(201,168,76,0.12);
  --green: #58d68d;
  --red: #e74c3c;
  --blue: #5dade2;
  --transition: 0.3s ease;
}

/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #060a10; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
#page-loader img { animation: pulse-loader 1.5s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(201,168,76,0.4)); }
#page-loader.loaded { opacity: 0; pointer-events: none; }
@keyframes pulse-loader { 0%,100% { transform:scale(1); opacity:0.7; } 50% { transform:scale(1.08); opacity:1; } }

/* ===== BASE ===== */
* { scroll-behavior: smooth; box-sizing: border-box; }
::selection { background: rgba(201,168,76,0.3); color: #fff; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 13px;
}

h1, h2, h3, h5, .navbar-brand span, .ct, .sv { font-family: 'Cinzel', serif; }

/* ===== STARFIELD ===== */
#starfield { position: fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }

/* ===== NAVBAR ===== */
.navbar-eve {
  background: rgba(6,10,16,0.85); border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 0; position: sticky; top: 0; z-index: 1000;
  transition: all var(--transition);
}
.navbar-eve.scrolled { background: rgba(6,10,16,0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.navbar-brand span {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light), #fff, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.navbar-logo { filter: drop-shadow(0 0 8px rgba(201,168,76,0.3)); transition: transform var(--transition); }
.navbar-logo:hover { transform: scale(1.05); }
.nav-link {
  color: var(--text-muted) !important; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.5px; padding: 6px 14px !important; position: relative;
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold-light) !important; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.navbar-toggler { border: 1px solid var(--border-gold); padding: 4px 8px; }
.navbar-toggler-bar { display: block; width: 22px; height: 2px; background: var(--gold); margin: 4px 0; border-radius: 2px; transition: all var(--transition); }

/* ===== BUTTONS ===== */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a0a; font-family: 'Cinzel', serif; font-weight: 600;
  letter-spacing: 1px; border: none; padding: 8px 20px;
  box-shadow: 0 0 15px rgba(201,168,76,0.2);
  transition: all var(--transition);
}
.btn-gold:hover { filter: brightness(1.15); box-shadow: 0 0 25px rgba(201,168,76,0.4); transform: translateY(-1px); color: #0a0a0a; }
.btn-outline-gold {
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 1px;
  background: transparent; padding: 8px 20px; transition: all var(--transition);
}
.btn-outline-gold:hover { background: rgba(201,168,76,0.1); color: var(--gold-light); border-color: var(--gold-light); }
.btn-danger-outline {
  border: 1px solid rgba(231,76,60,0.4); color: var(--red);
  background: transparent; padding: 6px 14px; font-size: 0.75rem;
  transition: all var(--transition);
}
.btn-danger-outline:hover { background: rgba(231,76,60,0.1); border-color: var(--red); color: var(--red); }

/* ===== LANG SWITCHER ===== */
.lang-btn { font-size: 0.7rem; padding: 2px 8px; border-color: var(--border-gold); color: var(--text-muted); }
.lang-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.lang-btn.active { background: rgba(201,168,76,0.15); border-color: var(--gold); color: var(--gold-light); }

/* ===== CONTENT ===== */
.content { position: relative; z-index: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* ===== CARDS ===== */
.eve-card {
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: 12px; backdrop-filter: blur(6px);
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
}
.eve-card:hover { border-color: rgba(201,168,76,0.45); box-shadow: 0 0 25px var(--glow-gold); transform: translateY(-2px); }
.card-icon { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.ch {
  background: rgba(10,15,26,0.6); border-bottom: 1px solid var(--border-gold);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
.ct {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cb { padding: 16px; }

/* ===== STAT BOXES ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 10px; padding: 16px; }
.sb {
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: 10px; padding: 14px 16px; transition: all var(--transition);
}
.sb:hover { border-color: rgba(201,168,76,0.4); box-shadow: 0 0 15px var(--glow-gold); }
.sl { font-size: .63rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 5px; font-weight: 600; }
.sv {
  font-size: 1.05rem; font-weight: 700; line-height: 1.2;
  background: linear-gradient(135deg, var(--gold-light), #fff, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sv-grn { background: linear-gradient(135deg, #58d68d, #a3f7bf); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sv-red { background: none; -webkit-text-fill-color: var(--red); color: var(--red); }
.sv-blue { background: linear-gradient(135deg, #5dade2, #a3d9f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ss { font-size: .68rem; color: var(--text-muted); margin-top: 4px; }

/* ===== TABLES ===== */
table { width: 100%; border-collapse: collapse; }
th {
  background: rgba(10,15,26,0.6); color: var(--gold); font-size: .67rem;
  text-transform: uppercase; letter-spacing: .8px; padding: 9px 10px;
  text-align: left; border-bottom: 1px solid var(--border-gold); white-space: nowrap; font-weight: 600;
}
th.r, td.r { text-align: right; }
th.c, td.c { text-align: center; }
td { padding: 8px 10px; border-bottom: 1px solid rgba(201,168,76,0.1); font-size: .84rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(201,168,76,0.03); }
tr:nth-child(even) td { background: rgba(201,168,76,0.02); }

/* ===== COLORS ===== */
.cv-gold { color: var(--gold-light); font-weight: 600; }
.cv-acc { color: var(--gold); font-weight: 600; }
.cv-grn { color: var(--green); font-weight: 600; }
.cv-red { color: var(--red); }
.cv-blue { color: var(--blue); font-weight: 600; }
.cv-hi { color: var(--text-light); }
.cv-dim { color: var(--text-muted); }

/* ===== BADGES ===== */
.bdg { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .3px; }
.bdg-grn { background: rgba(88,214,141,0.15); color: var(--green); border: 1px solid rgba(88,214,141,0.3); }
.bdg-red { background: rgba(231,76,60,0.15); color: var(--red); border: 1px solid rgba(231,76,60,0.3); }
.bdg-gold { background: rgba(201,168,76,0.15); color: var(--gold-light); border: 1px solid rgba(201,168,76,0.3); }
.bdg-blue { background: rgba(93,173,226,0.15); color: var(--blue); border: 1px solid rgba(93,173,226,0.3); }

/* ===== ENDPOINT LIST ===== */
.endpoint {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid rgba(201,168,76,0.1); transition: background 0.2s;
}
.endpoint:last-child { border-bottom: none; }
.endpoint:hover { background: rgba(201,168,76,0.03); }
.method {
  display: inline-block; min-width: 50px; text-align: center;
  padding: 2px 8px; border-radius: 4px; font-size: .65rem; font-weight: 700; letter-spacing: .5px;
}
.method-get { background: rgba(88,214,141,0.15); color: var(--green); border: 1px solid rgba(88,214,141,0.3); }
.method-post { background: rgba(93,173,226,0.15); color: var(--blue); border: 1px solid rgba(93,173,226,0.3); }
.method-del { background: rgba(231,76,60,0.15); color: var(--red); border: 1px solid rgba(231,76,60,0.3); }
.ep-path { color: var(--gold-light); font-size: .82rem; font-weight: 600; font-family: monospace; }
.ep-desc { color: var(--text-muted); font-size: .72rem; margin-left: auto; }

/* ===== CATEGORY HEADER ===== */
.cat-header {
  padding: 8px 14px; background: rgba(201,168,76,0.06);
  border-bottom: 1px solid var(--border-gold);
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold);
  font-family: 'Cinzel', serif;
}

/* ===== CODE BLOCK ===== */
.code {
  background: rgba(6,10,16,0.8); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px; padding: 10px 14px; font-family: monospace;
  font-size: .78rem; color: var(--text-light); overflow-x: auto;
  white-space: pre-wrap; word-break: break-all;
}

/* ===== SEPARATOR ===== */
hr.sep { border: none; border-top: 1px solid rgba(201,168,76,0.15); margin: 12px 0; }
.gold-divider { width: 50px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 8px auto 0; }

/* ===== PULSE DOT ===== */
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.dot-grn { background:var(--green); animation:pulse 2s infinite; }
.dot-red { background:var(--red); animation:pulse 1s infinite; }

/* ===== SPINNER ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display:inline-block; width:12px; height:12px; border:2px solid var(--border-gold); border-top-color:var(--gold); border-radius:50%; animation:spin 0.6s linear infinite; vertical-align:middle; margin-right:4px; }

/* ===== FOOTER ===== */
.footer-eve {
  background: rgba(6,10,16,0.9); border-top: 1px solid var(--border-gold);
  padding: 20px 0; text-align: center; color: var(--text-muted); font-size: 0.75rem;
  position: relative; z-index: 1;
}
.footer-eve a { color: var(--gold); text-decoration: none; }
.footer-eve a:hover { color: var(--gold-light); }
.footer-logo { filter: drop-shadow(0 0 6px rgba(201,168,76,0.3)); margin-bottom: 8px; }

/* ===== FADE ===== */
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) { .stats { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); } }
@media (max-width: 768px) {
  .endpoint { flex-wrap: wrap; gap: 6px; }
  .ep-desc { margin-left: 0; width: 100%; }
  .navbar-brand span { font-size: 0.9rem; }
}
@media (max-width: 576px) { .wrap { padding: 12px; } }
