/* night.css — VibeCam Night Party Theme
   Drop this file in the project root and link it on every page. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root{
  --bg:#0b0c10;                 /* page background */
  --bg-elev:#111217;            /* elevated background (cards) */
  --bg-elev-2:#161826;          /* deeper elevated (hero) */
  --text:#F3F4F6;
  --muted:#B5B8C3;              /* body copy */
  --line:#242638;

  --primary-1:#9d4edd;          /* gradient start */
  --primary-2:#ff1e9c;          /* gradient end */
  --primary-3:#00e5ff;          /* accent chip */
  --success:#2ecc71;
  --warning:#ffb020;
  --danger:#ff5c5c;

  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;

  --shadow-1:0 10px 24px rgba(0,0,0,.35);
  --shadow-2:0 16px 40px rgba(0,0,0,.45);

  --content-max:1200px;

  /* Type scale tuned for mobile-first */
  --h1:clamp(28px, 4.2vw, 56px);
  --h2:clamp(22px, 3vw, 34px);
  --h3:clamp(18px, 2.3vw, 24px);
  --lead:clamp(15px, 1.8vw, 18px);
  --body:15.5px;
  --small:13.5px;
}

* { box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0;
  background:radial-gradient(1200px 800px at -10% -10%, #141629 0%, transparent 55%),
             radial-gradient(1000px 600px at 110% -20%, #1a0f2f 0%, transparent 45%),
             var(--bg);
  color:var(--text);
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height:1.5;
}

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

.page{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

.container{
  width:100%;
  max-width:var(--content-max);
  margin:0 auto;
  padding:18px clamp(14px, 3vw, 28px);
}

/* NAVBAR */
.navbar{
  position:sticky; top:0; z-index:40;
  background:rgba(9,10,14,.6);
  backdrop-filter:saturate(130%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.navbar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

/* Enhanced brand styling */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.nav-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* BUTTONS */
.btn{
  --pad-y:.72rem; --pad-x:1.05rem; --radius:999px; --fs:15px;
  display:inline-flex; align-items:center; justify-content:center;
  padding:var(--pad-y) var(--pad-x);
  font-weight:600; font-size:var(--fs);
  border-radius:var(--radius);
  border:1px solid transparent;
  cursor:pointer; user-select:none;
  transition:transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:active{ transform:translateY(1px) scale(.98); }

.btn-primary{
  background:linear-gradient(135deg, var(--primary-1), var(--primary-2));
  box-shadow:0 8px 20px rgba(255, 30, 156, .25), 0 6px 16px rgba(157, 78, 221, .22);
  color:white;
}
.btn-primary:hover{ box-shadow:0 12px 28px rgba(255, 30, 156, .28), 0 10px 20px rgba(157, 78, 221, .26); }

.btn-ghost{
  background:rgba(255,255,255,.06);
  color:white; border-color:rgba(255,255,255,.12);
}
.btn-ghost:hover{ background:rgba(255,255,255,.10); }

.btn-danger{
  background:rgba(255,92,92,.1);
  border-color:rgba(255,92,92,.25);
  color:#ff8b8b;
}
.btn-danger:hover{ background:rgba(255,92,92,.18); }

/* CHIPS */
.chip{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; padding:.35rem .6rem;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

/* CARDS & BLOCKS */
.block{
  background:var(--bg-elev);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  padding:clamp(14px, 2.4vw, 24px);
}
.block-deep{
  background:var(--bg-elev-2);
  border:1px solid #21233a;
  box-shadow:var(--shadow-2);
}

/* GRID helpers */
.grid{ display:grid; gap:clamp(12px, 2vw, 18px); }
.grid-2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
@media (max-width:960px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid-2, .grid-3{ grid-template-columns:1fr; } }

/* TYPE */
h1{ font-size:var(--h1); line-height:1.1; margin:0 0 .35em; letter-spacing:.2px; }
h2{ font-size:var(--h2); line-height:1.18; margin:.2em 0 .35em;}
h3{ font-size:var(--h3); line-height:1.22; margin:.2em 0 .35em;}
.lead{ color:var(--muted); font-size:var(--lead); }

/* HERO */
.hero{
  display:grid;
  grid-template-columns:1.25fr .9fr;
  gap:clamp(12px, 2.2vw, 22px);
  align-items:center;
}
@media (max-width:900px){ .hero{ grid-template-columns:1fr; } }

.polaroid{
  background:white; color:black; border-radius:12px;
  padding:10px 10px 16px; transform:rotate(-3deg);
  box-shadow:0 18px 40px rgba(0,0,0,.55);
}
.polaroid img{ border-radius:8px; }
.polaroid .caption{
  display:flex; justify-content:space-between; font-weight:700;
  margin-top:8px; font-size:13px;
}

/* THUMB SCROLLER */
.thumb-row{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:14px;
}
.thumb{ position:relative; overflow:hidden; border-radius:14px; border:1px solid rgba(255,255,255,.06); }
.thumb img{ width:100%; height:160px; object-fit:cover; }
.thumb .tag{
  position:absolute; left:8px; bottom:8px; font-size:12px; padding:.35rem .6rem;
  background:rgba(0,0,0,.45); color:white; border-radius:999px; border:1px solid rgba(255,255,255,.18);
}

/* LISTS */
ol.list{ padding-left:18px; color:var(--muted); }
ol.list li{ margin:.35rem 0; }

/* FORMS */
.input, .select, .textarea{
  width:100%;
  background:rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:.9rem 1rem;
  font-size:15.5px;
  outline:none;
  transition:border-color .15s ease, background .15s ease;
}
.input::placeholder{ color:#9aa0ad; }
.input:focus{ border-color:#7a59ff; background:rgba(255,255,255,.08); }

.controls-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; }
.form-note{ color:var(--muted); font-size:var(--small); }

.table-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }

/* LIBRARY GRID */
.photos-grid{
  display:grid; gap:10px;
  grid-template-columns:repeat(4, minmax(0,1fr));
}
@media (max-width:1024px){ .photos-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:720px){ .photos-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:430px){ .photos-grid{ grid-template-columns:1fr; } }
.photo{
  position:relative; overflow:hidden; border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#0e0f17;
}
.photo img{ width:100%; height:230px; object-fit:cover; display:block; }
.photo .check{
  position:absolute; top:10px; right:10px;
  background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.3);
  border-radius:8px; padding:6px 8px; font-size:12px;
}

/* MODAL */
.modal{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.5); z-index:80;
}
.modal.open{ display:flex; }
.modal .modal-content{ max-width:560px; width:92%; }

/* FOOTER */
.site-footer{ margin-top:auto; border-top:1px solid rgba(255,255,255,.08); }
.site-footer .container{ padding-top:28px; padding-bottom:28px; color:var(--muted); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* Helpers */
.center{ text-align:center; }
.mt-1{ margin-top:.5rem; } .mt-2{ margin-top:1rem; } .mt-3{ margin-top:1.5rem; }
.mb-1{ margin-bottom:.5rem; } .mb-2{ margin-bottom:1rem; } .mb-3{ margin-bottom:1.5rem; }

/* Mobile-friendly navigation */
@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 10, 14, 0.95);
    backdrop-filter: saturate(130%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .navbar-inner {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .brand {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.35rem;
  }
  
  .brand img {
    width: 36px;
    height: 36px;
  }
  
  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  
  .nav-actions .btn {
    border-radius: 0;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--text);
    font-weight: 600;
  }
  
  .nav-actions .btn:last-child {
    border-right: none;
  }
  
  .nav-actions .btn.btn-primary {
    background: transparent;
    box-shadow: none;
  }
  
  .nav-actions .btn.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
  }
  
  .nav-actions .btn.active {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    color: white;
  }
  
  .nav-actions .btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
  }
  
  .nav-actions .btn.active:hover {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  }
}

/* Tablet view - 2 rows layout */
@media (min-width: 769px) and (max-width: 900px) {
  .navbar-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .brand {
    flex: 1 1 100%;
    justify-content: center;
    padding-bottom: 0.5rem;
  }
  
  .nav-actions {
    flex: 1 1 100%;
    justify-content: center;
  }
  
  .nav-actions .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

/* Very small mobile devices */
@media (max-width: 380px) {
  .brand {
    font-size: 1.1rem;
  }
  
  .brand img {
    width: 32px;
    height: 32px;
  }
  
  .nav-actions .btn {
    font-size: 0.7rem;
    padding: 0.6rem 0.25rem;
  }
}