@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600;700&family=Noto+Serif+Georgian:wght@300;400;500;600;700&display=swap');

/* ═══ VARIABLES ═══════════════════════════════ */
:root {
  --bg-0:     #0A0608;
  --bg-1:     #0F0A0C;
  --bg-2:     #130D10;
  --surface:  #170F13;
  --border:   rgba(201,169,110,0.14);
  --gold:     #C9A96E;
  --gold-dark:#9B7A3D;
  --crimson:  #8B1A1A;
  --crimson-l:#C0392B;
  --text:     #E8DCC8;
  --text-dim: rgba(232,220,200,0.45);
}

/* ═══ RESET ══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Noto Serif Georgian', serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(139,26,26,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(100,60,10,0.06) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

.market-legend {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  padding: 10px 15px;
  background: rgba(201,169,110,0.08);
  border-left: 2px solid var(--gold);
  border-radius: 3px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.legend-icon {
  font-weight: bold;
  color: var(--gold);
  font-size: 1.1rem;
}

.enchant-badge {
  position: absolute;
  bottom: 45px;
  left: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
}
/* ═══ NAV ════════════════════════════════════ */
.geo-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,6,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 58px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem; color: var(--gold); letter-spacing: 2px;
  transition: opacity 0.3s;
}
.nav-brand:hover { opacity: 0.8; }
.brand-icon { font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  padding: 6px 12px; text-decoration: none;
  font-family: 'Noto Serif Georgian', serif; font-size: 1.1rem;
  color: var(--text-dim); border-radius: 3px; transition: all 0.25s;
}
.nav-link:hover { color: var(--gold); background: rgba(201,169,110,0.07); }
.nav-user {
  padding: 6px 12px; text-decoration: none; display: flex; align-items: center; gap: 6px;
  font-family: 'Cinzel', serif; font-size: 1.15rem; color: var(--gold);
  border-left: 1px solid var(--border); margin-left: 8px; padding-left: 16px;
}
.nav-btn {
  padding: 7px 16px; text-decoration: none;
  font-family: 'Noto Serif Georgian', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--bg-0); background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 3px; transition: all 0.3s; margin-left: 6px;
}
.nav-btn:hover { opacity: 0.85; }
.nav-logout {
  padding: 6px 12px; text-decoration: none;
  font-family: 'Noto Serif Georgian', serif; font-size: 0.8rem;
  color: rgba(200,80,80,0.6); transition: color 0.3s;
}
.nav-logout:hover { color: #E06060; }

/* ═══ PAGE ════════════════════════════════════ */
.geo-page { position: relative; z-index: 1; }

/* ═══ FOOTER ═════════════════════════════════ */
.geo-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  margin-top: 4rem;
  position: relative; z-index: 1;
}
.footer-text {
  font-family: 'Cinzel', serif; font-size: 1.15rem;
  letter-spacing: 4px; color: var(--gold-dark);
  text-align: center; text-transform: uppercase;
}

/* ═══ SECTION HEADINGS ═══════════════════════ */
.section-eyebrow {
  font-family: 'Cinzel', serif; font-size: 0.86rem;
  letter-spacing: 5px; color: var(--gold-dark);
  text-transform: uppercase; text-align: center; margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Cinzel Decorative', serif; font-size: 2.8rem;
  color: var(--gold); text-align: center; margin-bottom: 0.6rem;
}
.section-desc {
  font-family: 'Noto Serif Georgian', serif; font-size: 1.1rem;
  color: var(--text-dim); text-align: center; margin-bottom: 3rem; line-height: 1.7;
}

/* ═══ CREATE CHARACTER PAGE ══════════════════ */
.create-page { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; position: relative; z-index: 1; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.class-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: all 0.4s;
}
.class-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,169,110,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 20px rgba(201,169,110,0.2);
}
.class-banner {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139,26,26,0.3), rgba(20,12,16,1));
  position: relative; overflow: hidden;
}
.class-emoji { font-size: 5rem; filter: drop-shadow(0 0 20px rgba(201,169,110,0.5)); }
.class-body { padding: 1.4rem; }
.class-name { font-family: 'Cinzel Decorative', serif; font-size: 1.2rem; color: var(--gold); margin-bottom: 0.15rem; }
.class-name-geo { font-family: 'Noto Serif Georgian', serif; font-size: 1.15rem; color: var(--gold-dark); letter-spacing: 1.5px; margin-bottom: 0.8rem; }
.class-desc { font-family: 'Noto Serif Georgian', serif; font-size: 0.97rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 1rem; }
.class-select-btn {
  width: 100%; padding: 11px; border: none; border-radius: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-0); font-family: 'Noto Serif Georgian', serif;
  font-size: 1.15rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.5px;
}
.class-select-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ═══ STAR FIELD ════════════════════════════ */
.star-field {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.star-field::before, .star-field::after {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦';
  position: absolute; color: rgba(201,169,110,0.12);
  font-size: 0.4rem; letter-spacing: 40px; line-height: 80px;
  white-space: nowrap; word-break: break-all;
  top: 0; left: -100%; right: -100%; bottom: 0;
  animation: drift 80s linear infinite;
}
.star-field::after { animation-delay: -40s; color: rgba(201,169,110,0.07); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(100px); } }

/* ═══ ANIMATIONS ════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ SCROLLBAR ═════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══ SELECTION ════════════════════════════ */
::selection { background: rgba(201,169,110,0.25); color: var(--gold); }
