/* assets/style.css
   Dark theme (mobile header slimmed)
   - Reduces header height and padding on small screens
   - Tightens logo and hamburger sizes on mobile
   - Reduces hero top spacing so content isn't pushed down
   - Keeps mobile nav right-aligned and full-width panel behavior
   Overwrite /assets/style.css with this file and hard-refresh (Ctrl/Cmd+Shift+R).
*/

/* =========================
   Design tokens
   ========================= */
:root{
  --bg: #0b0f13;
  --surface: #0f1720;
  --muted: #9aa4b2;
  --text: #e6eef6;
  --accent: #7c5cff;
  --accent-2: #00e5ff;
  --border: rgba(255,255,255,0.04);
  --card-radius: 12px;
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.6);
  --shadow-md: 0 18px 48px rgba(0,0,0,0.7);
  --max-width:1200px;

  /* Desktop header height */
  --header-height:64px;

  --font-sans: "Inter","Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial;
  --thumb-size:72px;
}

/* =========================
   Base / Layout
   ========================= */
*{box-sizing:border-box}
html { scroll-behavior: smooth; }
html,body{height:100%;margin:0;padding:0}
body{
  font-family:var(--font-sans);
  color:var(--text);
  background: var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  position:relative;
}

/* Network canvas sits behind content */
#bg-canvas{ position: fixed; inset: 0; z-index: -3; pointer-events: none; width:100%; height:100%; }

/* Keep main content above background layers */
.site, .container, .site-header, main, footer { position: relative; z-index: 2; }

/* Central container - use header height variable for top padding */
.container{max-width:var(--max-width);margin:0 auto;padding:calc(var(--header-height) + 10px) 18px 48px;position:relative}

/* =========================
   Header / Navigation
   ========================= */
.site-header{
  position:fixed;
  left:0; right:0; top:0;
  height:var(--header-height);
  display:flex; align-items:center;
  z-index:1200; padding:0 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(6px) saturate(.9);
  transition: box-shadow 200ms ease, background 200ms ease, height 160ms ease, padding 160ms ease;
}
.site-header.scrolled{ box-shadow: var(--shadow-md); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
}

/* Brand / logo */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#006400;
  font-weight:700;
  font-size:16px;
}

/* Logo wrapper and image */
.logo-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  border-radius:8px;
  background: rgba(255,255,255,0.02);
  line-height:0;
  text-decoration:none;
}
.site-logo-img{
  height:36px;
  width:auto;
  display:block;
  object-fit:contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}
.logo-text{ display:none !important; } /* hidden fallback */

/* Nav */
.nav-menu{ display:flex; gap:14px; align-items:center; }
.nav-link{ font-size:13px; color:var(--muted); padding:8px 10px; border-radius:8px; text-decoration:none; }
.nav-link:hover{ color:var(--text); background: rgba(255,255,255,0.03); transform:translateY(-2px); }

/* Hamburger (mobile) */
.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  padding:8px;
  border-radius:8px;
  cursor:pointer;
}
.nav-toggle .hamburger-line{
  display:block;
  width:20px;
  height:2px;
  background:var(--muted);
  margin:3px 0;
  border-radius:1px;
  transition: all 160ms ease;
}
body.nav-open .hamburger-line:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.nav-open .hamburger-line:nth-child(2){ opacity:0; }
body.nav-open .hamburger-line:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* =========================
   Mobile adjustments
   ========================= */
@media (max-width:980px) {
  /* Show hamburger, hide desktop nav */
  .nav-toggle{ display:block; }
  .nav-menu{ display:none; }

  /* Mobile nav panel */
  body.nav-open .nav-menu{
    display:flex;
    position:fixed;
    top:var(--header-height);
    right:12px;
    width:86%;
    max-width:340px;
    padding:12px;
    flex-direction:column;
    gap:8px;
    background:var(--surface);
    border-radius:10px;
    box-shadow:0 20px 36px rgba(0,0,0,0.6);
    border:1px solid rgba(255,255,255,0.03);
    z-index:1202;

    /* Right align menu items (user requested) */
    align-items:flex-end;
    text-align:right;
    padding-right:18px;
  }

  /* Make links full-width in panel and right-aligned */
  body.nav-open .nav-menu .nav-link{
    display:block;
    width:100%;
    text-align:right;
    padding-left:10px;
    padding-right:10px;
  }

  /* Reduce header padding & height on smaller screens to avoid taking too much space */
  :root { --header-height: 56px; } /* slightly smaller base on mobile */
  .site-header{
    padding-top:6px;
    padding-bottom:6px;
    height:var(--header-height);
  }

  /* center align inner row vertically and ensure min height */
  .header-inner{ align-items:center; min-height:var(--header-height); }

  /* shrink logo & hamburger sizes for mobile */
  .site-logo-img{ height:30px; }
  .nav-toggle{ padding:6px; }

  /* reduce top offset so content doesn't get pushed too far down */
  .container{ padding: calc(var(--header-height) + 8px) 14px 40px; }
}

/* Additional compact adjustments for very small screens */
@media (max-width:420px){
  :root { --header-height: 52px; }
  .site-logo-img{ height:28px; }
  .nav-toggle .hamburger-line{ width:18px; height:2px; margin:2px 0; }
  .container{ padding: calc(var(--header-height) + 6px) 12px 36px; }
  .hero{ padding:12px 14px; min-height:12vh; }
}

/* =========================
   Hero (small intro)
   ========================= */
.hero{
  margin-top:12px;
  padding:18px 20px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:14vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
}
@media (max-width:980px){
  .hero{ flex-direction:column; align-items:flex-start; min-height:18vh; }
}
.hero-text{ max-width:72%; }
.hero h1{ margin:0; font-size:18px; color:var(--text); line-height:1.05; }
.lead{ margin:6px 0 0; color:var(--muted); font-size:13px; }
.handle{ display:none; }
.cta-note{ color:var(--muted); margin-top:6px; font-size:13px; }

/* =========================
   Gallery (instagram-like)
   ========================= */
.gallery--instagram{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
  align-items:start;
}
@media (max-width:980px){ .gallery--instagram{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:600px){ .gallery--instagram{ grid-template-columns: 1fr; } }

.insta-card{
  background:var(--surface);
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
}
.insta-thumb{ display:block; position:relative; padding-top:100%; overflow:hidden; }
.insta-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform 300ms ease; }
.insta-thumb:hover img{ transform:scale(1.03); }
.insta-caption{ padding:10px; font-size:13px; color:var(--text); }

/* =========================
   Articles (compact)
   ========================= */
.articles-grid{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:12px; }
.article-card, .articles-grid a { text-decoration:none !important; color:inherit; }
.article-card{
  display:flex;
  gap:12px;
  background:var(--surface);
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  align-items:center;
}
.article-media{
  flex:0 0 var(--thumb-size);
  width:var(--thumb-size);
  height:var(--thumb-size);
  border-radius:8px;
  overflow:hidden;
  background:#0b1116;
  display:flex;
  align-items:center;
  justify-content:center;
}
.article-media img{ width:100%; height:100%; object-fit:cover; }
.article-body{ flex:1; display:flex; flex-direction:column; justify-content:center; }
.article-site{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.article-title{ font-weight:700; font-size:14px; margin-bottom:6px; }
.article-desc{ color:var(--muted); font-size:13px; }
.article-desc a { text-decoration:none; color:inherit; }

/* =========================
   Lightbox (single-image)
   ========================= */
.lightbox-overlay{
  position:fixed; inset:0; z-index:2200;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.8); padding:20px;
}
.lightbox-content{
  max-width:1100px; width:100%; max-height:90vh;
  display:flex; flex-direction:column; align-items:center; gap:8px; position:relative;
}
.lightbox-img{ max-width:100%; max-height:78vh; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,0.8); }
.lightbox-caption{
  color:var(--text); font-size:13px; text-align:center;
  padding:6px 10px; background: rgba(255,255,255,0.02); border-radius:8px;
}
.lightbox-close{
  position:absolute; top:-20px; left:50%; transform:translateX(-50%); z-index:2301;
  background:rgba(255,255,255,0.06); color:var(--text); border:0; width:34px; height:34px;
  display:inline-flex; align-items:center; justify-content:center; border-radius:999px; font-size:16px;
  cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,0.6);
}
.lightbox-close:hover{ background:rgba(255,255,255,0.10); }

/* =========================
   Footer & utilities
   ========================= */
.site-footer{ padding:28px; text-align:center; color:var(--muted); font-size:13px; }
.muted{ color:var(--muted); font-size:13px; }
.btn{ display:inline-flex; align-items:center; gap:8px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:#fff; padding:10px 14px; border-radius:10px; border:0; cursor:pointer; }
.btn-ghost{ background:transparent; border:1px solid var(--border); color:var(--muted); padding:8px; border-radius:8px; }
.btn-danger{ background:#ef4444; color:#fff; padding:8px; border-radius:8px; border:0; }

/* =========================
   End of file
   ========================= */