/* ==========================================================================
   Cormorant SC — self-hosted from /fonts/ (copied from CI3)
   ========================================================================== */
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Light.ttf')    format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Regular.ttf')  format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Medium.ttf')   format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Bold.ttf')     format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ==========================================================================
   GeoCraft Design System — CSS Variables + Bootstrap 5 overrides
   One file to rule them all. Change a variable here, the whole UI shifts.
   ========================================================================== */

:root {
    /* ── Gold ──────────────────────────────────────────────────────────── */
    --gc-gold:           #c8902a;               /* primary brand gold      */
    --gc-gold-light:     #e1b35b;               /* hover / highlight gold  */
    --gc-gold-rgb:       200, 144, 42;          /* for rgba() construction */
    --gc-gold-dim:       rgba(200,144,42,.35);  /* borders, subtle accents */
    --gc-gold-glow:      rgba(200,144,42,.15);  /* badge bg, active states */

    /* ── Backgrounds ───────────────────────────────────────────────────── */
    --gc-bg:             #050403;               /* page base               */
    --gc-bg-card:        #0d0b07;               /* cards, panels           */
    --gc-bg-sidebar:     #080603;               /* portal sidebar          */
    --gc-bg-overlay:     rgba(5,4,3,.92);       /* navbar, modals          */
    --gc-bg-hover:       #0f0c08;               /* nav item hover          */
    --gc-bg-elevated:    #120e09;               /* focused inputs          */

    /* ── Borders ───────────────────────────────────────────────────────── */
    --gc-border:         rgba(200,144,42,.15);
    --gc-border-strong:  rgba(200,144,42,.40);

    /* ── Typography ────────────────────────────────────────────────────── */
    --gc-text:           #d4d4d4;
    --gc-text-heading:   #f0e6c8;
    --gc-text-muted:     #847766;               /* raised from #6b6b6b     */
    --gc-font-serif:     'Cormorant SC', Georgia, serif;
    --gc-font-sans:      system-ui, 'Segoe UI', sans-serif;

    /* ── Status ────────────────────────────────────────────────────────── */
    --gc-success:        #4caf7d;
    --gc-warning:        #e8b84b;
    --gc-danger:         #cf6679;
    --gc-info:           #5b9bd5;

    /* ── Layout ────────────────────────────────────────────────────────── */
    --gc-navbar-h:       64px;                  /* public navbar           */
    --gc-topbar-height:  64px;                  /* portal topbar (alias)   */
    --gc-sidebar-width:  220px;
    --gc-radius:         8px;
    --gc-radius-sm:      4px;
    --gc-transition:     150ms ease;

    /* ── Bootstrap 5 bridge ────────────────────────────────────────────── */
    --bs-primary:            var(--gc-gold);
    --bs-primary-rgb:        200, 144, 42;
    --bs-body-bg:            var(--gc-bg);
    --bs-body-color:         var(--gc-text);
    --bs-border-color:       var(--gc-border);
    --bs-border-radius:      var(--gc-radius);
    --bs-card-bg:            var(--gc-bg-card);
    --bs-card-border-color:  var(--gc-border);
    --bs-link-color:         var(--gc-gold);
    --bs-link-hover-color:   var(--gc-gold-light);
    --bs-font-sans-serif:    var(--gc-font-sans);
}

/* ==========================================================================
   Base resets
   ========================================================================== */

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

html, body {
    height: 100%;
    background: var(--gc-bg);
    color: var(--gc-text);
    font-family: var(--bs-font-sans-serif);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gc-text-heading);
    font-weight: 600;
}

a {
    color: var(--gc-gold);
    text-decoration: none;
    transition: color var(--gc-transition);
}
a:hover { color: var(--gc-gold-light); }

/* ==========================================================================
   Particle canvas — behind everything, never intercepts clicks
   ========================================================================== */

/* ==========================================================================
   Page border overlays — same images + approach as CI3
   ========================================================================== */

.nk-page-border .nk-page-border-t,
.nk-page-border .nk-page-border-r,
.nk-page-border .nk-page-border-b,
.nk-page-border .nk-page-border-l {
    position: fixed;
    z-index: 2000;
    user-select: none;
    pointer-events: none;
    background-size: 100% 100%;
}
.nk-page-border .nk-page-border-t,
.nk-page-border .nk-page-border-b { left: 0; width: 100%; height: 50px; }
.nk-page-border .nk-page-border-r,
.nk-page-border .nk-page-border-l { top: 0; height: 100%; width: 50px; }
.nk-page-border .nk-page-border-t { top: 0;    background-image: url('/img/border-top.png'); }
.nk-page-border .nk-page-border-b { bottom: 0; background-image: url('/img/border-bottom.png'); }
.nk-page-border .nk-page-border-r { right: 0;  background-image: url('/img/border-right.png'); }
.nk-page-border .nk-page-border-l { left: 0;   background-image: url('/img/border-left.png'); }

/* particles-js + page background — identical to CI3 */
.nk-page-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background-position: 50% 50%;
    background-size: cover;
    pointer-events: none;
}
.op-5 { opacity: .5 !important; }
#particles-js canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 2; /* restore canvas to full opacity over the dimmed bg */
}

/* Everything rendered above the canvas */
.gc-sidebar,
.gc-topbar,
.gc-content,
.gc-rightpanel {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Portal layout — sidebar + content
   ========================================================================== */

.gc-portal-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.gc-sidebar {
    width: var(--gc-sidebar-width);
    min-height: 100vh;
    background: var(--gc-bg-sidebar);
    border-right: 1px solid var(--gc-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 0 0 1.5rem;
}

.gc-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--gc-border);
    margin-bottom: 0.5rem;
    text-decoration: none;
}
.gc-sidebar-logo img { width: 32px; height: 32px; }
.gc-sidebar-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gc-gold);
    letter-spacing: 0.03em;
}

.gc-nav-section {
    padding: 0.75rem 0.75rem 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gc-text-muted);
}

.gc-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: var(--gc-radius-sm);
    color: var(--gc-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--gc-transition), color var(--gc-transition);
}
.gc-nav-item:hover {
    background: var(--gc-bg-hover);
    color: var(--gc-text-heading);
}
.gc-nav-item.active {
    background: var(--gc-gold-glow);
    color: var(--gc-gold-light);
    border-left: 2px solid var(--gc-gold);
    margin-left: calc(0.5rem - 2px);
}
.gc-nav-item svg, .gc-nav-item i {
    width: 16px;
    opacity: 0.75;
    flex-shrink: 0;
}

/* ── Main content area ── */
.gc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gc-topbar-portal {
    height: var(--gc-topbar-height);
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gc-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gc-topbar-search {
    flex: 1;
    max-width: 400px;
}
.gc-topbar-search input {
    background: var(--gc-bg-card);
    border: 1px solid var(--gc-border);
    border-radius: 6px;
    color: var(--gc-text);
    padding: 0.375rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--gc-transition);
}
.gc-topbar-search input:focus {
    border-color: var(--gc-gold-dim);
}
.gc-topbar-search input::placeholder { color: var(--gc-text-muted); }

.gc-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.gc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gc-gold-dim);
    object-fit: cover;
    cursor: pointer;
}

.gc-content {
    flex: 1;
    padding: 1.5rem;
}

/* ── Right panel (optional) ── */
.gc-rightpanel {
    width: 280px;
    flex-shrink: 0;
    background: var(--gc-bg-card);
    border-left: 1px solid var(--gc-border);
    padding: 1.25rem;
}

/* ==========================================================================
   Public layout — navbar
   ========================================================================== */

.gc-navbar {
    background: rgba(10,9,7,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gc-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}
/* Bootstrap row carries the height; align-items-center (on the row) vertically centers columns */
.gc-navbar .row { min-height: 64px; }
.gc-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cormorant SC', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gc-text-heading);
    text-decoration: none;
    letter-spacing: 0.03em;
}
.gc-navbar-brand img { height: 38px; width: auto; display: block; }
.gc-navbar-soon { opacity: .45; pointer-events: none; }
.gc-navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
}
.gc-navbar-links a {
    padding: 0.4rem 0.85rem;
    color: rgba(212,212,212,.88);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--gc-transition);
}
.gc-navbar-links a:hover,
.gc-navbar-links a.active { color: var(--gc-text-heading); }
.gc-navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.gc-navbar-search-btn {
    background: none; border: none;
    color: rgba(212,212,212,.65);
    padding: 0.3rem; cursor: pointer;
    font-size: 1rem;
    transition: color var(--gc-transition);
}
.gc-navbar-search-btn:hover { color: var(--gc-text-heading); }
.btn-nav-login {
    background: none; border: none;
    color: rgba(212,212,212,.88);
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    transition: color var(--gc-transition);
}
.btn-nav-login:hover { color: var(--gc-text-heading); }
.btn-nav-play {
    background: var(--gc-gold);
    color: #0a0805;
    border: none; border-radius: 3px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--gc-transition);
}
.btn-nav-play:hover { background: var(--gc-gold-light); color: #0a0805; }

/* ==========================================================================
   Public layout — footer
   ========================================================================== */

.gc-footer {
    background: #070605;
    border-top: 1px solid var(--gc-border);
    padding: 4rem 2rem 2rem;
    position: relative; z-index: 1;
}
.gc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.6fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.gc-footer-brand {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: 1.1rem; font-weight: 700;
    color: var(--gc-text-heading);
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    display: block;
}
.gc-footer-desc {
    font-size: 0.85rem; color: rgba(212,212,212,.55);
    line-height: 1.7; margin-bottom: 1.25rem;
}
.gc-footer-socials { display: flex; gap: 0.75rem; }
.gc-footer-socials a {
    width: 32px; height: 32px;
    border: 1px solid var(--gc-border); border-radius: var(--gc-radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: rgba(212,212,212,.5); font-size: 0.9rem;
    text-decoration: none;
    transition: border-color var(--gc-transition), color var(--gc-transition);
}
.gc-footer-socials a:hover { border-color: var(--gc-gold-dim); color: var(--gc-gold); }
.gc-footer-col-title {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gc-text-heading); margin-bottom: 1rem;
}
.gc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.gc-footer-col ul li { margin-bottom: 0.55rem; }
.gc-footer-col ul a {
    font-size: 0.875rem; color: rgba(212,212,212,.6);
    text-decoration: none;
    transition: color var(--gc-transition);
}
.gc-footer-col ul a:hover { color: var(--gc-text-heading); }
.gc-footer-email-row {
    display: flex;
    border: 1px solid var(--gc-border); border-radius: var(--gc-radius-sm);
    overflow: hidden; margin-bottom: 1rem;
}
.gc-footer-email-row input {
    flex: 1; background: var(--gc-bg-card); border: none;
    color: var(--gc-text); padding: 0.5rem 0.75rem;
    font-size: 0.8rem; outline: none;
}
.gc-footer-email-row input::placeholder { color: var(--gc-text-muted); }
.gc-footer-email-row button {
    background: var(--gc-gold); border: none; color: #0a0805;
    padding: 0 0.75rem; font-size: 0.9rem; cursor: pointer;
    transition: background var(--gc-transition);
}
.gc-footer-email-row button:hover { background: var(--gc-gold-light); }
.gc-footer-lang select {
    background: var(--gc-bg-card); border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-sm); color: var(--gc-text-muted);
    padding: 0.4rem 0.75rem; font-size: 0.8rem; outline: none; width: 100%;
}
.gc-footer-bottom {
    max-width: 1100px; margin: 0 auto;
    border-top: 1px solid var(--gc-border); padding-top: 1.5rem;
    text-align: center; font-size: 0.8rem; color: rgba(212,212,212,.4);
}
@media (max-width: 991px) {
    .gc-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .gc-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .gc-footer-grid { grid-template-columns: 1fr 1fr; }
    .gc-navbar-links { display: none; }
}

/* ==========================================================================
   Public page — hero
   ========================================================================== */

.gc-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050402 url('/img/hero-bg.jpg') 62% center / cover no-repeat;
}
/* Gradient veil: dark-left for readability, fade top+bottom */
.gc-hero-veil {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(to right,  rgba(5,4,2,.95) 0%, rgba(5,4,2,.78) 40%, rgba(5,4,2,.25) 65%, rgba(5,4,2,.05) 100%),
        linear-gradient(to top,    rgba(5,4,2,.8)  0%, transparent 30%),
        linear-gradient(to bottom, rgba(5,4,2,.55) 0%, transparent 12%);
}
.gc-hero-content {
    position: relative; z-index: 4;
    max-width: 600px;
    padding: 6rem 2rem 4rem;
    margin-left: clamp(1.5rem, 6vw, 6rem);
}
.gc-hero-emblem {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem; color: var(--gc-gold);
}
.gc-hero-emblem::before,
.gc-hero-emblem::after {
    content: ''; flex: 1; max-width: 52px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gc-gold-dim));
}
.gc-hero-emblem::after { background: linear-gradient(to left, transparent, var(--gc-gold-dim)); }
.gc-hero-emblem span {
    font-size: 0.62rem; letter-spacing: 0.25em;
    text-transform: uppercase; font-weight: 700;
}
.gc-hero-tagline {
    font-size: 0.9rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gc-gold);
    font-weight: 600; margin-bottom: 0.9rem;
}
.gc-hero h1 {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    color: var(--gc-text-heading);
    line-height: 1.0; letter-spacing: 0.04em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 40px rgba(200,144,42,.2), 0 0 120px rgba(200,144,42,.08);
}
.gc-hero-desc {
    color: #b0a080; font-size: 1.1rem;
    margin-bottom: 2.25rem; max-width: 420px; line-height: 1.78;
}
.gc-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--gc-gold); color: #08070a;
    border: none; border-radius: 2px;
    padding: 0.85rem 2.25rem;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: background .15s;
}
.btn-hero-primary:hover { background: var(--gc-gold-light); color: #08070a; }
.btn-hero-ghost {
    background: transparent; color: rgba(212,212,212,.65);
    border: 1px solid rgba(212,212,212,.2); border-radius: 2px;
    padding: 0.85rem 2.25rem;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: border-color .15s, color .15s;
}
.btn-hero-ghost:hover { border-color: rgba(200,144,42,.4); color: var(--gc-text-heading); }

/* ==========================================================================
   Public page — feature pillars
   ========================================================================== */

.gc-pillars {
    position: relative; z-index: 1;
    padding: 6rem 2rem; text-align: center;
    background: rgba(4,3,2,0.62);
    border-top: 1px solid rgba(200,144,42,.08);
}
.gc-pillars-inner { max-width: 1200px; margin: 0 auto; }
.gc-pillars-eyebrow {
    font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gc-gold); font-weight: 600; margin-bottom: 1rem;
}
.gc-pillars-eyebrow::before,
.gc-pillars-eyebrow::after {
    content: '——'; margin: 0 0.6em; opacity: 0.5;
}
.gc-pillars-title {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--gc-text-heading); letter-spacing: 0.06em; margin-bottom: 0.85rem;
}
.gc-pillars-sub {
    color: var(--gc-text); font-size: 1rem;
    max-width: 500px; margin: 0 auto 3.5rem; line-height: 1.85;
}
.gc-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.gc-pillar {
    background: rgba(14,11,7,.8);
    border: 1px solid rgba(200,144,42,0.15);
    border-radius: var(--gc-radius);
    padding: 2.5rem 1.75rem 2.25rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.gc-pillar:hover {
    border-color: rgba(200,144,42,.45);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.gc-pillar-icon { font-size: 2rem; color: var(--gc-gold); margin-bottom: 1.25rem; display: block; opacity: .9; }
.gc-pillar h3 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gc-text-heading); margin-bottom: 0.75rem; font-weight: 700; }
.gc-pillar p  { font-size: 0.9rem; color: rgba(212,212,212,.7); margin: 0; line-height: 1.8; }

/* ==========================================================================
   Public page — world map band
   ========================================================================== */

.gc-mapband {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 520px;
    border-top: 1px solid rgba(200,144,42,.08);
    border-bottom: 1px solid rgba(200,144,42,.08);
}
.gc-mapband-text {
    background: rgba(6,5,3,0.82);
    padding: 5rem 4rem 5rem clamp(1.5rem, 6vw, 6rem);
    display: flex; flex-direction: column; justify-content: center;
}
.gc-mapband-eyebrow {
    font-size: 0.78rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gc-gold); margin-bottom: 1.25rem;
}
.gc-mapband-text h2 {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    color: var(--gc-text-heading); line-height: 1.2; margin-bottom: 1.25rem;
}
.gc-mapband-text p {
    color: var(--gc-text); font-size: 1rem;
    margin-bottom: 2.5rem; line-height: 1.85; max-width: 360px;
}
.btn-map {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid rgba(200,144,42,.35); border-radius: 2px;
    color: var(--gc-text-heading);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; width: fit-content;
    transition: background .15s, border-color .15s;
}
.btn-map:hover { background: var(--gc-gold-glow); border-color: var(--gc-gold); color: var(--gc-gold-light); }
.gc-mapband-visual { position: relative; overflow: hidden; background: #070502 url('/img/world-map-preview.jpg') center/cover no-repeat; }
.gc-mapband-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to right, rgba(6,5,3,.9) 0%, rgba(6,5,3,.4) 30%, transparent 55%),
        linear-gradient(to bottom, rgba(5,4,2,.3) 0%, transparent 20%),
        rgba(5,4,2,.5);
}
.gc-mapband-icon {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gc-mapband-icon i    { font-size: 7rem; color: rgba(200,144,42,.18); display: block; margin-bottom: 0.75rem; }
.gc-mapband-icon span { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(200,144,42,.32); }

/* ==========================================================================
   Public page — news section
   ========================================================================== */

.gc-news-wrap  { position: relative; z-index: 1; background: rgba(4,3,2,0.62); padding: 6rem 2rem; border-top: 1px solid rgba(200,144,42,.08); }
.gc-news-inner { max-width: 1200px; margin: 0 auto; }
.gc-section-header {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 2rem;
}
.gc-section-title {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gc-text-heading); margin: 0;
}
.gc-section-link {
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gc-gold); font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.3rem;
    transition: color .15s;
}
.gc-section-link:hover { color: var(--gc-gold-light); }
.gc-news-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.gc-news-card {
    background: rgba(16,13,9,.85);
    border: 1px solid var(--gc-border); border-radius: var(--gc-radius);
    overflow: hidden; text-decoration: none; color: var(--gc-text);
    transition: border-color .25s, transform .25s, box-shadow .25s; display: block;
}
.gc-news-card:hover {
    border-color: rgba(200,144,42,.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    color: var(--gc-text);
}
.gc-news-thumb {
    width: 100%; aspect-ratio: 16/9;
    background-color: #1a1510;
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
    transition: transform .4s;
}
.gc-news-card:hover .gc-news-thumb { transform: scale(1.04); }
.gc-news-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(5,4,2,.7) 100%);
}
.gc-news-body  { padding: 1.1rem 1.1rem 1.3rem; }
.gc-news-cat   { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gc-gold); font-weight: 700; margin-bottom: 0.5rem; }
.gc-news-title { font-size: 1rem; font-weight: 600; color: var(--gc-text-heading); line-height: 1.45; margin-bottom: 0.5rem; font-family: 'Cormorant SC', serif; }
.gc-news-date  { font-size: 0.78rem; color: var(--gc-text-muted); }

/* ==========================================================================
   Public page — community stats
   ========================================================================== */

.gc-community {
    position: relative; z-index: 1;
    background: rgba(4,3,2,0.62);
    border-top: 1px solid rgba(200,144,42,.08);
    padding: 6rem 2rem; text-align: center;
}
.gc-community-inner { max-width: 1100px; margin: 0 auto; }
.gc-community h2 {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gc-text-heading); margin-bottom: 3.5rem;
    letter-spacing: 0.04em;
}
.gc-community-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; max-width: 960px; margin: 0 auto;
}
.gc-community-stat {
    padding: 2rem 1rem;
    border: 1px solid rgba(200,144,42,.1);
    border-radius: var(--gc-radius);
    background: rgba(18,14,8,.5);
    transition: border-color .2s;
}
.gc-community-stat:hover { border-color: rgba(200,144,42,.3); }
.gc-community-stat     { display: flex; align-items: center; gap: 1.25rem; }
.gc-community-stat i   { font-size: 1.8rem; color: var(--gc-gold); flex-shrink: 0; opacity: .75; }
.gc-community-val      { font-size: 2.6rem; color: var(--gc-gold); line-height: 1; font-family: 'Cormorant SC', serif; font-weight: 600; }
.gc-community-label    { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gc-text-muted); margin-top: 0.3rem; }

/* ==========================================================================
   Public page — responsive
   ========================================================================== */

@media (max-width: 991px) {
    .gc-pillars-grid   { grid-template-columns: repeat(2, 1fr); }
    .gc-news-grid      { grid-template-columns: repeat(2, 1fr); }
    .gc-community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .gc-mapband        { grid-template-columns: 1fr; }
    .gc-mapband-visual { min-height: 240px; }
    .gc-hero-content   { margin-left: 0; }
}
@media (max-width: 575px) {
    .gc-pillars-grid   { grid-template-columns: 1fr; }
    .gc-news-grid      { grid-template-columns: 1fr; }
    .gc-community-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.gc-card {
    background: var(--gc-bg-card);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 1.25rem;
    transition: border-color var(--gc-transition);
}
.gc-card:hover { border-color: var(--gc-border-strong); }

.gc-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--gc-radius-sm);
    background: var(--gc-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-gold);
    margin-bottom: 0.75rem;
}

.gc-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gc-text-heading);
    line-height: 1;
    margin: 0.25rem 0;
}

.gc-stat-label {
    font-size: 0.75rem;
    color: var(--gc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gc-stat-sub {
    font-size: 0.8rem;
    color: var(--gc-text-muted);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-gc {
    background: var(--gc-gold);
    color: #0e0e0e;
    border: none;
    border-radius: var(--gc-radius-sm);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gc-transition), opacity var(--gc-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-gc:hover { background: var(--gc-gold-light); color: #0e0e0e; }

.btn-gc-outline {
    background: transparent;
    color: var(--gc-gold);
    border: 1px solid var(--gc-gold-dim);
    border-radius: var(--gc-radius-sm);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gc-transition), border-color var(--gc-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-gc-outline:hover {
    background: var(--gc-gold-glow);
    border-color: var(--gc-gold);
    color: var(--gc-gold-light);
}

/* ==========================================================================
   Badges / pills
   ========================================================================== */

.gc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gc-badge-gold    { background: var(--gc-gold-glow);           color: var(--gc-gold-light); }
.gc-badge-success { background: rgba(76, 175, 125, 0.15);      color: var(--gc-success); }
.gc-badge-danger  { background: rgba(207, 102, 121, 0.15);     color: var(--gc-danger); }
.gc-badge-muted   { background: rgba(107, 107, 107, 0.15);     color: var(--gc-text-muted); }

/* ==========================================================================
   Quick Access grid
   ========================================================================== */

.gc-quickaccess {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gc-quickaccess-item {
    background: var(--gc-bg-card);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gc-text);
    transition: border-color var(--gc-transition), background var(--gc-transition);
}
.gc-quickaccess-item:hover {
    border-color: var(--gc-gold-dim);
    background: var(--gc-bg-elevated);
    color: var(--gc-text-heading);
}
.gc-quickaccess-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--gc-radius-sm);
    background: var(--gc-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-gold);
    flex-shrink: 0;
}
.gc-quickaccess-label { font-size: 0.875rem; font-weight: 600; }
.gc-quickaccess-sub   { font-size: 0.75rem; color: var(--gc-text-muted); }

/* ==========================================================================
   Notification badge
   ========================================================================== */

.gc-notif-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--gc-text-muted);
    padding: 0.25rem;
    cursor: pointer;
    transition: color var(--gc-transition);
}
.gc-notif-btn:hover { color: var(--gc-text); }
.gc-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gc-gold);
    color: #0e0e0e;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Responsive — collapse sidebar on mobile
   ========================================================================== */

@media (max-width: 768px) {
    .gc-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        transition: left var(--gc-transition);
        z-index: 200;
    }
    .gc-sidebar.open { left: 0; }
    .gc-rightpanel   { display: none; }
}

/* ==========================================================================
   Mockup: community stats — horizontal inline, no card borders
   ========================================================================== */
.gc-community-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: none;
    margin: 0 auto;
}
.gc-community-stat {
    border: none;
    background: transparent;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}
.gc-community-stat i {
    font-size: 2.2rem;
    margin-bottom: 0;
    opacity: 1;
    flex-shrink: 0;
    display: block;
}
.gc-community-val {
    font-size: 2rem;
    line-height: 1;
}

/* ==========================================================================
   Navbar — Bootstrap row height fix
   ========================================================================== */
.gc-navbar .container-fluid { height: 100%; }
.gc-navbar .row             { height: 100%; min-height: 64px; }

/* ==========================================================================
   Auth layout (login / register / recover) — full-screen two-column split
   ========================================================================== */
.gc-auth-shell {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* ── Left panel ── */
.gc-auth-panel {
    position: relative;
    z-index: 1;
    width: 42%;
    min-height: calc(100vh - 64px);
    background: #050403;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 3.5rem;
    box-sizing: border-box;
}

/* ── Brand block ── */
.gc-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}
.gc-auth-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    mix-blend-mode: lighten;
    margin-bottom: 0.75rem;
}
.gc-auth-brand-name {
    font-family: 'Cormorant SC', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gc-text-heading);
}
.gc-auth-brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gc-text-muted);
    margin-top: 0.2rem;
}

/* ── Heading ── */
.gc-auth-heading {
    font-family: 'Cormorant SC', serif;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 600;
    color: var(--gc-text-heading);
    margin-bottom: 0.4rem;
    text-align: center;
    max-width: 340px;
}
.gc-auth-sub {
    font-size: 0.875rem;
    color: rgba(212,212,212,.55);
    text-align: center;
    margin-bottom: 1.75rem;
    max-width: 340px;
}

/* ── Error ── */
.gc-auth-error {
    width: 100%;
    background: rgba(180,40,40,.12);
    border: 1px solid rgba(180,40,40,.3);
    border-radius: var(--gc-radius-sm);
    color: #e07070;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
}

/* ── Form ── */
.gc-auth-form { width: 100%; max-width: 340px; }
.gc-auth-field-wrap { margin-bottom: 1.1rem; }
.gc-auth-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gc-text-heading);
    margin-bottom: 0.45rem;
}

/* Bootstrap input-group overrides scoped to the auth panel */
.gc-auth-panel .input-group-text {
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.10);
    color: rgba(212,212,212,.4);
    font-size: 0.9rem;
}
.gc-auth-panel .form-control {
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.10);
    color: var(--gc-text);
    font-size: 0.9rem;
    height: 48px;
}
.gc-auth-panel .form-control::placeholder { color: rgba(212,212,212,.28); }
.gc-auth-panel .form-control:focus {
    background: rgba(255,255,255,.03);
    border-color: var(--gc-gold-dim);
    color: var(--gc-text-heading);
    box-shadow: none;
}
.gc-auth-panel .input-group:focus-within .input-group-text {
    border-color: var(--gc-gold-dim);
    color: rgba(212,212,212,.65);
}
.gc-auth-eye {
    cursor: pointer;
    color: rgba(212,212,212,.35);
    transition: color var(--gc-transition);
}
.gc-auth-eye:hover { color: var(--gc-text); }

/* ── Meta row ── */
.gc-auth-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.gc-auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(212,212,212,.65);
    cursor: pointer;
}
.gc-auth-remember input[type="checkbox"] { accent-color: var(--gc-gold); }
.gc-auth-forgot {
    font-size: 0.82rem;
    color: var(--gc-gold);
    text-decoration: none;
    transition: color var(--gc-transition);
}
.gc-auth-forgot:hover { color: var(--gc-gold-light); }

/* ── Buttons ── */
.gc-auth-btn-primary {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gc-gold);
    border-radius: var(--gc-radius-sm);
    background: transparent;
    color: var(--gc-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--gc-transition), color var(--gc-transition);
    margin-bottom: 0;
}
.gc-auth-btn-primary:hover {
    background: var(--gc-gold);
    color: #08070a;
}

/* ── Divider ── */
.gc-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 340px;
    margin: 1.1rem 0;
    color: rgba(212,212,212,.3);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.gc-auth-divider::before,
.gc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gc-border);
}

.gc-auth-btn-secondary {
    display: block;
    width: 100%;
    max-width: 340px;
    padding: 0.75rem;
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-sm);
    background: transparent;
    color: rgba(212,212,212,.75);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: border-color var(--gc-transition), color var(--gc-transition);
}
.gc-auth-btn-secondary:hover {
    border-color: rgba(212,212,212,.4);
    color: var(--gc-text-heading);
}

/* ── Legal ── */
.gc-auth-legal {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: rgba(212,212,212,.3);
    text-align: center;
    line-height: 1.6;
    max-width: 340px;
}
.gc-auth-legal a {
    color: rgba(212,212,212,.45);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--gc-transition);
}
.gc-auth-legal a:hover { color: var(--gc-text); }

/* ── Right panel — transparent so particles canvas (man-mapwall bg) shows through ── */
.gc-auth-hero {
    flex: 1;
    position: relative;
    background: transparent;
}
.gc-auth-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,4,3,.6) 0%, transparent 40%);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gc-auth-shell { flex-direction: column; }
    .gc-auth-panel { width: 100%; min-height: auto; padding: 2.5rem 1.75rem; }
    .gc-auth-hero  { min-height: 240px; }
}
