/* ==========================================================
   CHRISTIAN GOBLIN — SHARED DESIGN SYSTEM
   shared.css  •  import this on every static page
   ========================================================== */

/* ── TOKENS ─────────────────────────────────────────────── */

:root {

  /* Backgrounds */
  --bg:           #050505;
  --panel:        rgba(12,12,12,.82);
  --panel-hover:  rgba(20,20,20,.94);

  /* Text */
  --text:         #ebe4d7;
  --muted:        #b7ab99;

  /* Accents */
  --gold:         #d6c29c;
  --gold-soft:    #bca98a;
  --blue:         #6f8fff;
  --emerald:      #42c78b;
  --emerald-hover:#59d89a;

  /* UI chrome */
  --border:       rgba(255,255,255,.06);
  --border-hover: rgba(214,194,156,.18);
  --shadow:       0 10px 40px rgba(0,0,0,.45);

  /* Radius */
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    28px;

}

/* ── RESET ───────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.94)),
    url('/images/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── CONTAINER ───────────────────────────────────────────── */

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* ── NAVBAR ──────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.08));
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: .92rem;
  letter-spacing: .5px;
  color: #d3c6b4;
  position: relative;
  transition: .25s;
}

.nav-links a:hover { color: white; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: .25s;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-links a[aria-current="page"] { color: white; }

/* ── HERO ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 190px 20px 120px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.92)),
    url('/images/background.png');
  background-size: cover;
  background-position: center;
  opacity: .42;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: auto;
}

.hero-logo {
  width: 180px;
  margin: auto auto 30px;
  filter: drop-shadow(0 0 25px rgba(255,255,255,.08));
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  margin-bottom: 24px;
  color: #f4ecdc;
  text-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.hero p {
  font-size: 1.12rem;
  line-height: 1.9;
  color: #d5cabd;
  max-width: 720px;
  margin: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ── SECTIONS ────────────────────────────────────────────── */

.section { padding: 90px 0; }

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  margin-bottom: 30px;
  color: var(--gold);
}

/* ── GRID ────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ── CARDS ───────────────────────────────────────────────── */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: .3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,194,156,.03), transparent 45%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--panel-hover);
  border-color: var(--border-hover);
}

.card h2, .card h3 {
  font-family: 'Cinzel', serif;
  margin-bottom: 12px;
  color: #f0e4cf;
}

.card p { color: var(--muted); line-height: 1.8; }

/* ── INFO PANEL ──────────────────────────────────────────── */

.info-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.info-panel p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.info-panel p:last-child { margin-bottom: 0; }

/* ── LINK CARDS ──────────────────────────────────────────── */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.link-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: .3s;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,194,156,.03), transparent 50%);
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-6px);
  background: var(--panel-hover);
  border-color: var(--border-hover);
}

.link-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.link-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.link-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  padding: 12px;
}

.link-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: #f0e5d0;
}

.link-text p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

.arrow {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: .7;
  transition: .25s;
}

.link-card:hover .arrow {
  transform: translateX(5px);
  opacity: 1;
}

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: .25s;
  border: none;
  font-size: 1rem;
}

.btn-gold {
  background: var(--gold);
  color: #050505;
}

.btn-gold:hover {
  background: #e6d5b2;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,.06);
}

.btn-blue {
  background: linear-gradient(135deg, #456fff, #7ca7ff);
  color: white;
}

.btn-blue:hover { transform: translateY(-2px); }

.btn-emerald {
  background: var(--emerald);
  color: white;
}

.btn-emerald:hover {
  background: var(--emerald-hover);
  transform: translateY(-3px);
}

/* ── ALERT BOX ───────────────────────────────────────────── */

.alert-box {
  background: var(--panel);
  border: 1px solid rgba(255,0,0,.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.alert-box h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #ff8d8d;
}

.alert-box p { font-size: 1.1rem; }

.alert-box strong {
  display: block;
  margin-top: 22px;
  font-size: 1.6rem;
  color: white;
}

/* ── GLASS PANEL ─────────────────────────────────────────── */

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}

/* ── FORMS ───────────────────────────────────────────────── */

.form-group {
  display: grid;
  gap: 16px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: .25s;
  font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(214,194,156,.45);
  background: rgba(255,255,255,.05);
}

/* Inline form status message */
.form-status {
  display: none;
  margin-top: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(66,199,139,.12);
  border: 1px solid rgba(66,199,139,.35);
  color: var(--emerald);
}

.form-status.error {
  display: block;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.35);
  color: #f87171;
}

/* ── RESOURCE GRID ───────────────────────────────────────── */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.resource-box {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}

/* ── FOOTER ──────────────────────────────────────────────── */

footer {
  margin-top: 100px;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  color: #9f9688;
}

footer img {
  width: 70px;
  margin: auto auto 20px;
  opacity: .82;
}

/* ── COMING SOON BADGE ───────────────────────────────────── */

.badge-soon {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(214,194,156,.08);
  border: 1px solid rgba(214,194,156,.2);
  color: var(--gold-soft);
}

/* ── MOBILE ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav-inner {
    flex-direction: column;
    gap: 18px;
  }

  .hero { padding-top: 240px; }
}

@media (max-width: 700px) {
  .link-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .arrow { display: none; }

  .hero h1 { font-size: 3rem; }
  .hero p  { font-size: 1rem; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .btn { width: 100%; max-width: 320px; text-align: center; }

  .info-panel { padding: 24px 20px; }
}
