/* ============================================================
   style.css — Blackstar Network Ltd.
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #000000;
  --white:       #ffffff;
  --nav-bg:      rgba(0, 0, 0, 0.85);
  --panel-bg:    rgba(8, 8, 10, 0.97);
  --accent:      #4a7ab5;
  --text-body:   #b0b4be;
  --text-sub:    #6b7280;
  --border:      #1e2028;
  --prop-bg:     #0f1114;
  --prop-border: #1e2128;
  --scrollbar:   #2a2d35;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  background: #060a12;
  color: var(--text-body);
}

/* ── Full-bleed background ── */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, #1a2540 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, #0d1a2e 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, #0d1a2e 0%, transparent 60%),
    linear-gradient(180deg, #060a12 0%, #0d1625 40%, #1a2a40 100%);
  background-size: cover;
  background-position: center;
}

/* Procedural city skyline */
.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3CradialGradient id='glow' cx='50%25' cy='100%25' r='60%25'%3E%3Cstop offset='0' stop-color='%232a4a7a' stop-opacity='0.3'/%3E%3Cstop offset='1' stop-color='transparent'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill='url(%23glow)' width='1200' height='700'/%3E%3Crect x='30' y='380' width='40' height='320' fill='%23111d2e' opacity='.9'/%3E%3Crect x='75' y='340' width='55' height='360' fill='%230e1828' opacity='.9'/%3E%3Crect x='135' y='300' width='35' height='400' fill='%23131f30' opacity='.9'/%3E%3Crect x='175' y='360' width='50' height='340' fill='%230d1726' opacity='.9'/%3E%3Crect x='230' y='270' width='30' height='430' fill='%23162035' opacity='.9'/%3E%3Crect x='265' y='390' width='45' height='310' fill='%230f1a2a' opacity='.9'/%3E%3Crect x='315' y='330' width='38' height='370' fill='%23121c2d' opacity='.9'/%3E%3Crect x='540' y='80' width='55' height='620' fill='%231a2840' opacity='.95'/%3E%3Crect x='530' y='200' width='75' height='500' fill='%23162038' opacity='.9'/%3E%3Crect x='545' y='75' width='25' height='140' fill='%231e2e48' opacity='.9'/%3E%3Crect x='820' y='320' width='50' height='380' fill='%23111d2e' opacity='.9'/%3E%3Crect x='875' y='360' width='40' height='340' fill='%230e1828' opacity='.9'/%3E%3Crect x='920' y='280' width='55' height='420' fill='%23131f30' opacity='.9'/%3E%3Crect x='980' y='350' width='38' height='350' fill='%230d1726' opacity='.9'/%3E%3Crect x='1022' y='310' width='48' height='390' fill='%23162035' opacity='.9'/%3E%3Crect x='1075' y='380' width='42' height='320' fill='%230f1a2a' opacity='.9'/%3E%3Crect x='1120' y='340' width='55' height='360' fill='%23121c2d' opacity='.9'/%3E%3Crect x='42' y='400' width='5' height='4' fill='%236090d0' opacity='.4'/%3E%3Crect x='52' y='420' width='5' height='4' fill='%236090d0' opacity='.3'/%3E%3Crect x='85' y='360' width='6' height='4' fill='%235080c0' opacity='.4'/%3E%3Crect x='95' y='380' width='6' height='4' fill='%235080c0' opacity='.3'/%3E%3Crect x='555' y='110' width='6' height='5' fill='%2370a0e0' opacity='.5'/%3E%3Crect x='565' y='130' width='6' height='5' fill='%2370a0e0' opacity='.4'/%3E%3Crect x='555' y='150' width='6' height='5' fill='%2370a0e0' opacity='.3'/%3E%3Crect x='930' y='300' width='6' height='4' fill='%235080c0' opacity='.4'/%3E%3Crect x='945' y='320' width='6' height='4' fill='%235080c0' opacity='.3'/%3E%3Crect x='990' y='370' width='5' height='4' fill='%236090d0' opacity='.4'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.55;
}

/* When a custom BG image is set via main.js */
.site-bg.custom-bg {
  background-image: none; /* overridden by inline style — just clears gradients */
}
.site-bg.custom-bg::after { display: none; }

/* ── Top-left logo bar ── */
.site-logo {
  position: fixed;
  top: 22vh;
  left: 0;
  z-index: 50;
  display: inline-flex;
  background: transparent;
  padding: 0;
}

/* Logo ring — image or default SVG */
.logo-ring {
  width: 100px;
  height: 100px;
  border-radius: 0;
  background: var(--nav-bg);
  border: none;
  border-bottom: 1px solid #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-ring svg { width: 60px; height: 60px; fill: #fff; }
.logo-ring img { width: 100%; height: 100%; object-fit: cover; }



/* ── Left vertical nav ── */
.site-nav {
  position: fixed;
  top: 45vh;          /* mid section of left side */
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.nav-btn {
  display: block;
  background: var(--nav-bg);
  color: #999;
  border: none;
  border-bottom: 1px solid #111;
  padding: 9px 20px;
  font-family: 'Lato', sans-serif;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s, padding-left .18s;
}

.nav-btn:hover {
  background: rgba(15, 15, 15, 0.97);
  color: var(--white);
  padding-left: 26px;
}

.nav-btn.active {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  border-left: 2px solid var(--accent);
}

/* ── Tagline ── */
.site-tagline {
  position: fixed;
  bottom: 64px;
  left: 150px;
  z-index: 10;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: .03em;
  line-height: 1.35;
  text-shadow: 0 2px 30px rgba(0,0,0,.8);
  pointer-events: none;
  user-select: none;
}

/* ── Bottom-left socials ── */
.site-socials {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
}

.site-socials a {
  display: block;
  color: #888;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .12em;
  padding: 8px 16px;
  background: var(--nav-bg);
  border-top: 1px solid #111;
  border-right: 1px solid #111;
  transition: color .18s, background .18s;
}

.site-socials a:hover {
  color: var(--white);
  background: var(--black);
}

/* ── Slide-in content panel ── */
.content-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 360px;
  height: 100vh;
  background: var(--panel-bg);
  border-right: 1px solid #1a1c22;
  padding: 80px 28px 40px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}

.content-panel.open      { transform: translateX(0); }

.content-panel::-webkit-scrollbar       { width: 4px; }
.content-panel::-webkit-scrollbar-track { background: transparent; }
.content-panel::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 2px; }

/* Close button */
.panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: none;
  border: 1px solid #2a2d35;
  color: #666;
  font-size: .7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s;
}

.panel-close:hover { color: #fff; border-color: #555; }

/* Panel sections */
.panel-section        { display: none; }
.panel-section.active { display: block; animation: panelIn .22s ease both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel title */
.panel-title {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .24em;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e2028;
}

/* Panel body text */
.panel-text {
  font-size: .86rem;
  line-height: 1.78;
  color: var(--text-body);
}

/* Social icons inside panel */
.panel-socials {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.panel-socials a {
  color: var(--text-sub);
  display: inline-flex;
  transition: color .2s;
}

.panel-socials a:hover { color: #fff; }
.panel-socials svg     { width: 18px; height: 18px; fill: currentColor; }

/* ── Properties ── */
.prop-list { display: flex; flex-direction: column; gap: 12px; }

.prop-item {
  padding: 13px 15px;
  background: var(--prop-bg);
  border: 1px solid var(--prop-border);
  border-radius: 3px;
  transition: border-color .2s;
}

.prop-item:hover { border-color: #2e3a52; }

.prop-name {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 5px;
}

.prop-desc {
  font-size: .78rem;
  color: var(--text-body);
  line-height: 1.55;
}

.prop-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: .6rem;
  letter-spacing: .13em;
  color: var(--accent);
  font-family: 'Cinzel', serif;
}

/* ── Contact rows ── */
.contact-rows { display: flex; flex-direction: column; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #1a1c22;
}

.contact-row:last-child { border-bottom: none; }

.contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid #252830;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-sub);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-value { font-size: .86rem; color: var(--text-body); }

.contact-value a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}

.contact-value a:hover { color: #7ab0e0; }

.contact-note {
  color: var(--text-sub);
  font-size: .72rem;
  margin-left: 7px;
}

/* ── Dim overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: all;
}
