/* ========================================
   CORUSCANT RP — style.css
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

:root {
  --red: #c0392b;
  --red-b: #e74c3c;
  --dark: #06080c;
  --dark2: #0a0d13;
  --panel: #111420;
  --panel2: #191d2a;
  --gold: #d4a017;
  --text: #e4e4e4;
  --muted: #777;
  --font-t: 'Orbitron', monospace;
  --font-b: 'Rajdhani', sans-serif;
  /* Faction accent — overridden per page via inline style on body */
  --acc: var(--red-b);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-b);
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6,8,12,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,57,43,0.35);
}
.nav-banner {
  display: flex; justify-content: center; align-items: center;
  padding: 10px 2rem 8px;
  border-bottom: 1px solid rgba(192,57,43,0.18);
}
.nav-banner a { display: flex; }
.nav-banner img {
  height: 62px; width: auto;
  filter: drop-shadow(0 0 16px rgba(192,57,43,0.45));
  transition: filter 0.2s;
}
.nav-banner img:hover { filter: drop-shadow(0 0 22px rgba(231,76,60,0.65)); }
.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 2rem;
}
.nav-btn {
  font-family: var(--font-t); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 8px 15px; border-radius: 3px; transition: all 0.2s;
  white-space: nowrap; display: inline-block;
}
.nav-btn:hover, .nav-btn.active {
  color: var(--red-b);
  background: rgba(192,57,43,0.12);
}

/* Dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(10,13,19,0.98); backdrop-filter: blur(12px);
  border: 1px solid rgba(192,57,43,0.3); border-radius: 4px;
  min-width: 190px; z-index: 2000; padding: 6px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 9px 18px;
  font-family: var(--font-t); font-size: 0.56rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  transition: all 0.15s; border-left: 2px solid transparent;
}
.dropdown-menu a:hover {
  color: #fff; background: rgba(192,57,43,0.12);
  border-left-color: var(--red-b);
}
.nav-right { margin-left: auto; }

/* ===== UTILITY ===== */
.eyebrow {
  font-family: var(--font-t); font-size: 0.58rem; letter-spacing: 6px;
  color: var(--red-b); text-transform: uppercase; margin-bottom: 0.7rem;
}
.eyebrow.acc { color: var(--acc); }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--red-b), transparent); margin: 1.5rem 0; }
.rule.acc { background: linear-gradient(90deg, transparent, var(--acc), transparent); }
.section-h2 { font-family: var(--font-t); font-size: 1.35rem; font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.prose { font-size: 0.97rem; color: rgba(232,232,232,0.72); line-height: 1.9; margin-bottom: 1.2rem; }
.band { width: 100%; padding: 2.5rem 2rem; }
.band.dark { background: var(--panel); border-top: 1px solid rgba(192,57,43,0.15); border-bottom: 1px solid rgba(192,57,43,0.15); }
.inner { max-width: 1000px; margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; }
@media(max-width:750px) { .two { grid-template-columns: 1fr; } .three { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px) { .three { grid-template-columns: 1fr; } }

/* ===== BUTTONS ===== */
.btn-p, .btn-disc, .btn-o, .btn-buy {
  font-family: var(--font-t); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  border: none; cursor: pointer; padding: 13px 28px; border-radius: 3px;
  text-decoration: none; display: inline-block;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.25s;
}
.btn-p { background: var(--red); color: #fff; }
.btn-p:hover { background: var(--red-b); transform: translateY(-2px); }
.btn-disc { background: #5865F2; color: #fff; }
.btn-disc:hover { background: #4752c4; transform: translateY(-2px); }
.btn-o { background: transparent; color: var(--red-b); border: 1px solid var(--red-b); clip-path: none; border-radius: 3px; }
.btn-o:hover { background: rgba(192,57,43,0.1); }
.ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

/* ===== PAGE HEADER LINE ===== */
.page-line {
  height: 3px;
  background: linear-gradient(90deg, var(--acc) 0%, rgba(192,57,43,0.25) 70%, transparent);
}

/* ===== PAGE BODY OFFSET ===== */
.page-body { padding-top: 122px; min-height: 100vh; }

/* ===== HOME ===== */
.home-wrap {
  padding-top: 122px; min-height: 100vh;
  background: var(--dark); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.home-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 40%, rgba(192,57,43,0.07) 0%, transparent 70%);
}
.stars-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.star { position: absolute; background: #fff; border-radius: 50%; animation: twinkle 3s infinite alternate; }
@keyframes twinkle { from { opacity: 0.1; } to { opacity: 0.8; } }

.home-hero {
  position: relative; z-index: 1; text-align: center;
  padding: 4rem 2rem 3rem; max-width: 960px; width: 100%;
}
.home-h1 {
  font-family: var(--font-t); font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 0.6rem;
  text-shadow: 0 0 80px rgba(192,57,43,0.2);
}
.home-h1 span { color: var(--red-b); }
.home-sub {
  font-family: var(--font-t); font-size: clamp(0.65rem, 1.4vw, 0.95rem);
  letter-spacing: 5px; color: var(--muted); margin-bottom: 1.8rem;
}
.home-desc {
  font-size: 1.05rem; font-weight: 300; color: rgba(232,232,232,0.72);
  line-height: 1.85; max-width: 620px; margin: 0 auto 1.5rem;
}

/* Server info box */
.server-box {
  background: var(--panel); border: 1px solid rgba(192,57,43,0.25);
  border-radius: 6px; padding: 1.5rem 2rem;
  max-width: 520px; margin: 0 auto 2rem; text-align: left;
}
.server-box h3 {
  font-family: var(--font-t); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 4px; color: var(--red-b); text-transform: uppercase;
  margin-bottom: 0.9rem; border-bottom: 1px solid rgba(192,57,43,0.2); padding-bottom: 0.6rem;
}
.server-box p { font-size: 0.92rem; color: rgba(232,232,232,0.72); margin-bottom: 0.35rem; }
.server-box a { color: #4db8ff; }
.server-box a:hover { text-decoration: underline; }

/* Faction cards */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.fac-c {
  background: var(--panel2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.3s; display: block;
}
.fac-c:hover { transform: translateY(-4px); border-color: rgba(192,57,43,0.4); }
.fac-img { height: 130px; overflow: hidden; position: relative; }
.fac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.fac-c:hover .fac-img img { transform: scale(1.06); }
.fac-img-ov { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.65)); }
.fac-acc { height: 2px; }
.fac-info { padding: 0.9rem; }
.fac-name { font-family: var(--font-t); font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; color: #fff; text-transform: uppercase; margin-bottom: 0.25rem; }
.fac-tag { font-size: 0.82rem; color: var(--muted); }

/* Why grid */
.grid-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.why-c { background: var(--panel2); border: 1px solid rgba(255,255,255,0.06); border-radius: 4px; padding: 1.1rem; border-left: 3px solid var(--red); }
.why-c h4 { font-family: var(--font-t); font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; color: var(--red-b); margin-bottom: 0.4rem; text-transform: uppercase; }
.why-c p { font-size: 0.88rem; color: rgba(232,232,232,0.68); line-height: 1.7; }

/* Histoire */
.hist-text { font-size: 0.97rem; color: rgba(232,232,232,0.7); line-height: 1.9; column-count: 2; column-gap: 2.5rem; }
@media(max-width:700px) { .hist-text { column-count: 1; } }

/* Devlog */
.devlog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.devlog-card {
  background: var(--panel2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; padding: 1.2rem; border-left: 3px solid var(--red);
  position: relative;
}
.devlog-date {
  font-family: var(--font-t); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 3px; color: var(--red-b); text-transform: uppercase; margin-bottom: 0.8rem;
}
.devlog-card ul { list-style: none; padding: 0; }
.devlog-card ul li { font-size: 0.87rem; color: rgba(232,232,232,0.75); line-height: 1.8; padding-left: 1rem; position: relative; }
.devlog-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--red-b); }

/* Features grid */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.feat-c { background: var(--panel2); border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; padding: 1.2rem; text-align: center; }
.feat-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.feat-c h4 { font-family: var(--font-t); font-size: 0.62rem; font-weight: 700; letter-spacing: 2px; color: var(--red-b); text-transform: uppercase; margin-bottom: 0.5rem; }
.feat-c p { font-size: 0.87rem; color: rgba(232,232,232,0.68); line-height: 1.7; }

/* ===== FACTION PAGES ===== */
.fhero {
  min-height: 50vh; display: flex; align-items: center;
  padding: 3rem 2rem; position: relative; overflow: hidden;
}
.fhero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media(max-width:750px) { .fhero-inner { grid-template-columns: 1fr; } }
.fbadge {
  font-family: var(--font-t); font-size: 0.55rem; letter-spacing: 3px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 2px;
  display: inline-block; margin-bottom: 1rem;
  background: rgba(255,255,255,0.06); color: var(--acc);
  border: 1px solid var(--acc);
}
.fh1 { font-family: var(--font-t); font-size: clamp(1.8rem,4vw,3rem); font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 1rem; }
.fdesc { font-size: 1rem; color: rgba(232,232,232,0.75); line-height: 1.85; margin-bottom: 1.5rem; }
.fimg { width: 100%; height: 340px; object-fit: cover; object-position: center top; border-radius: 4px; border: 1px solid rgba(255,255,255,0.08); }
.flogo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 1rem; opacity: 0.9; }

/* Content wrap */
.cwrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem; }
.ch2 { font-family: var(--font-t); font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: 1rem; }
.ch2 span { color: var(--acc); font-size: 0.6rem; letter-spacing: 4px; font-weight: 700; display: block; margin-bottom: 0.3rem; }

/* Info cards */
.igrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ic {
  background: var(--panel2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; padding: 1.2rem;
}
.ic h3 {
  font-family: var(--font-t); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 2px; color: var(--acc); text-transform: uppercase; margin-bottom: 0.5rem;
}
.ic p { font-size: 0.87rem; color: rgba(232,232,232,0.7); line-height: 1.75; }
.ic.accent-left { border-left: 3px solid var(--acc); }

/* Grades list */
.gl { background: var(--panel2); border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; padding: 1.2rem 1.4rem; }
.gl p { font-size: 0.92rem; color: rgba(232,232,232,0.72); line-height: 2.1; }

/* === TRAIT BLOCKS === */
.traits-section {
  background: var(--panel); border: 1px solid var(--acc);
  border-radius: 6px; padding: 2rem; margin-bottom: 2rem;
  position: relative;
}
.traits-section::before {
  content: 'TRAITS DE LA FACTION';
  font-family: var(--font-t); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 4px; color: var(--acc);
  position: absolute; top: -1px; left: 1.5rem;
  background: var(--panel); padding: 0 0.8rem;
  transform: translateY(-50%);
}
.traits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.trait-card {
  background: var(--panel2); border-radius: 4px; padding: 1.2rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s;
}
.trait-card:hover { border-color: var(--acc); }
.trait-card img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 0.7rem; opacity: 0.9; }
.trait-card h3 { font-family: var(--font-t); font-size: 0.62rem; font-weight: 700; letter-spacing: 2px; color: var(--acc); text-transform: uppercase; margin-bottom: 0.4rem; }
.trait-card p { font-size: 0.85rem; color: rgba(232,232,232,0.68); line-height: 1.7; }

/* Rules block */
.rules-block {
  background: var(--panel2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; padding: 1.4rem; border-left: 3px solid var(--red);
  margin-bottom: 1rem;
}
.rules-block h3 { font-family: var(--font-t); font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; color: var(--red-b); text-transform: uppercase; margin-bottom: 0.7rem; }
.rules-block p { font-size: 0.9rem; color: rgba(232,232,232,0.7); line-height: 1.95; }

/* ===== RÈGLEMENT ===== */
.reg-wrap { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }
.reg-title { font-family: var(--font-t); font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 1rem; }
.rblock { background: var(--panel); border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; padding: 1.5rem 2rem; margin-bottom: 1.5rem; border-left: 3px solid var(--red); }
.rblock h3 { font-family: var(--font-t); font-size: 0.65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red-b); margin-bottom: 1rem; }
.rblock p { font-size: 0.9rem; color: rgba(232,232,232,0.7); line-height: 2.05; }

/* ===== BOUTIQUE ===== */
.shop-hero { background: var(--panel); border-bottom: 1px solid rgba(192,57,43,0.3); padding: 3rem 2rem; text-align: center; }
.shop-h1 { font-family: var(--font-t); font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 0.5rem; }
.shop-sub { color: var(--muted); font-size: 1rem; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 3rem auto; padding: 0 2rem; }
.sc { background: var(--panel); border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.sc:hover { border-color: rgba(192,57,43,0.5); transform: translateY(-3px); }
.sc-img { height: 170px; overflow: hidden; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.sc:hover .sc-img img { transform: scale(1.05); }
.sc-info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.sc-name { font-family: var(--font-t); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; color: #fff; margin-bottom: 0.4rem; text-transform: uppercase; }
.sc-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 0.8rem; }
.sc-price { font-family: var(--font-t); font-size: 1.25rem; font-weight: 900; color: var(--gold); margin-bottom: 0.8rem; }
.sc-price small { font-size: 0.62rem; color: var(--muted); font-weight: 400; }
.btn-buy { font-family: var(--font-t); font-size: 0.58rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; background: var(--red); color: #fff; border: none; cursor: pointer; padding: 10px; width: 100%; border-radius: 2px; transition: background 0.2s; text-align: center; display: block; }
.btn-buy:hover { background: var(--red-b); }

/* ===== MENTIONS LÉGALES ===== */
.mentions-wrap { max-width: 860px; margin: 0 auto; padding: 3rem 2rem; }
.mentions-wrap h1 { font-family: var(--font-t); font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.mentions-section { margin-bottom: 2rem; }
.mentions-section h2 { font-family: var(--font-t); font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red-b); margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(192,57,43,0.25); }
.mentions-section p { font-size: 0.92rem; color: rgba(232,232,232,0.72); line-height: 1.95; }
.mentions-section p + p { margin-top: 0.8rem; }
.mentions-section span.hl { color: var(--red-b); font-weight: 600; }

/* ===== FOOTER ===== */
footer {
  background: var(--panel);
  border-top: 1px solid rgba(192,57,43,0.3);
  padding: 2.5rem 2rem;
  width: 100%;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
footer img.footer-logo { height: 40px; opacity: 0.55; margin-bottom: 0.5rem; }
footer p {
  font-family: var(--font-t); font-size: 0.52rem;
  letter-spacing: 3px; color: var(--muted); text-transform: uppercase; text-align: center;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--red-b); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-family: var(--font-t); font-size: 0.52rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--red-b); }
