/* ═══════════════════════════════════════════════════════════
   Stella Maris — SHARED styles (loaded before each page's inline
   <style>, so page-specific rules can override these).
   Common to index.html and gallery.html: variables, reset, nav,
   language bar, hamburger, mobile menu, stars, i18n display rules.
   ═══════════════════════════════════════════════════════════ */

:root {
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --gold-dark: #8B6914;
  --deep: #0D1117;
  --navy: #141C2B;
  --slate: #1E2A3A;
  --cream: #F8F3EA;
  --cream-dark: #EDE4D3;
  --white: #FFFFFF;
  --text-light: #9AA5B1;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--deep);
  color: var(--cream);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ─── LANG BAR ─── */
.lang-bar { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--text-light); font-family: var(--font-body);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 12px; cursor: pointer; transition: all 0.3s;
  border-radius: 2px;
}
.lang-btn.active, .lang-btn:hover { color: var(--gold); border-color: var(--gold); }

@media (min-width: 1025px) { nav { padding-right: 60px; } }
@media (max-width: 1024px) { .lang-bar { display: none; } }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(13,17,23,0.95) 0%, transparent 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,169,110,0.1);
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(13,17,23,0.98);
  border-bottom-color: rgba(201,169,110,0.25);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: 3px; color: var(--gold);
  text-decoration: none; text-transform: uppercase;
  flex-shrink: 0;
}
.nav-logo span {
  display: block; font-size: 9px; letter-spacing: 5px;
  color: var(--text-light); font-family: var(--font-body);
  font-weight: 300; margin-top: 2px;
}
.nav-links {
  display: flex; gap: 36px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  color: var(--cream); text-decoration: none;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 300; transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 100%;
  height: 1px; background: var(--gold); transition: right 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-book {
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--font-body);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  padding: 10px 24px; cursor: pointer; text-decoration: none;
  transition: all 0.3s; font-weight: 300;
}
.nav-book:hover { background: var(--gold); color: var(--deep); }

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--cream); transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  top: 80px; left: 0; right: 0; z-index: 998;
  background: rgba(13,17,23,0.99); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,169,110,0.2);
  padding: 32px 30px 40px;
  display: flex; flex-direction: column; gap: 0;
  transform: translateY(-10px); opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu a {
  color: var(--cream); text-decoration: none;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 300; padding: 18px 0;
  border-bottom: 1px solid rgba(201,169,110,0.08);
  transition: color 0.3s; display: block;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu-book {
  margin-top: 24px;
  background: var(--gold); color: var(--deep) !important;
  text-align: center; font-weight: 500 !important;
  border-bottom: none !important; padding: 16px 0 !important;
}

/* ─── STARS ─── */
.star {
  position: absolute; width: 2px; height: 2px;
  background: var(--gold); border-radius: 50%;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.6; }
}

/* ─── LANGUAGE DISPLAY SYSTEM ─── */
/* inline spans */
.inline-lang { display: none; }
.inline-lang.el { display: inline; }
body.en .inline-lang.el { display: none; }
body.en .inline-lang.en { display: inline; }
body.de .inline-lang.el { display: none; }
body.de .inline-lang.en { display: none; }
body.de .inline-lang.de { display: inline; }
/* block-level containers (e.g. About paragraphs) */
[data-lang] { display: none; }
[data-lang="el"] { display: block; }
body.en [data-lang="el"] { display: none; }
body.en [data-lang="en"] { display: block; }
body.de [data-lang="el"] { display: none; }
body.de [data-lang="en"] { display: none; }
body.de [data-lang="de"] { display: block; }
