:root{
  --purple:#6E0070;
  --cyan:#5BCEFA;

  --bg:#07080c;
  --panel:#101423;
  --panel2:#0c1020;
  --text:#eaf1f7;
  --muted:#b6c2d0;
  --line:rgba(255,255,255,.12);

  --radius:20px;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --ink:#06131a;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 540px at 15% 0%, rgba(91,206,250,.18), transparent 55%),
    radial-gradient(900px 540px at 85% 10%, rgba(110,0,112,.22), transparent 60%),
    radial-gradient(700px 420px at 40% 100%, rgba(91,206,250,.10), transparent 60%),
    var(--bg);
}

.container{width:min(1240px,calc(100% - 32px));margin:0 auto}
a{color:var(--cyan);text-decoration:none}
a:hover{text-decoration:underline}

.site-main{padding:18px 0 34px}

/* --- Heroazzle-dazzle helpers --- */
.glow{ box-shadow: 0 0 0 1px rgba(91,206,250,.18), 0 0 28px rgba(91,206,250,.22); }
.neon-border{
  position:relative;
}
.neon-border:before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:var(--radius);
  padding:1px;
  background:linear-gradient(90deg, rgba(91,206,250,.55), rgba(110,0,112,.55), rgba(91,206,250,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity:.65;
}

/* --- Header (bold like example 3) --- */
.herohead{
  background:
    linear-gradient(135deg, rgba(110,0,112,.95), rgba(110,0,112,.55)),
    radial-gradient(900px 520px at 20% 20%, rgba(91,206,250,.42), transparent 55%);
  border-bottom:1px solid rgba(255,255,255,.18);
}

.topbar3{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding: 6px 0;
  flex-wrap:wrap;
}

.brand3{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.badge3{
  width:44px;height:44px;border-radius:16px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  display:grid;place-items:center;
  font-weight:900; letter-spacing:.3px;
}
.brand-title3{font-weight:900;letter-spacing:.2px;font-size:18px}

.search3{
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:10px 12px;
  min-width:min(560px,58vw);
}
.search3 input{
  flex:1;
  background:transparent;
  border:0;
  outline:0;
  color:#fff;
  font-size:14px;
}
.header-actions{display:flex;gap:10px;flex-wrap:wrap}

.btn3{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:16px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.12);
  color:#fff;font-weight:900;
  text-decoration:none;
  cursor:pointer;
}
.btn3:hover{background:rgba(255,255,255,.18);text-decoration:none}
.btn3.cyan{
  background:rgba(91,206,250,.95);
  border-color:rgba(91,206,250,.75);
  color:var(--ink);
}

.hero3{
  display:flex;align-items:flex-end;justify-content:space-between;gap:14px;
  padding:8px 0 18px;
}
.hero3-title{margin:0;font-size:40px;line-height:1.05}
.hero3-accent{color:var(--cyan)}
.hero3-sub{margin:8px 0 0;color:rgba(255,255,255,.86);max-width:72ch}
.hero3-right{min-width:220px;display:grid;gap:10px;justify-items:end}
.sparkline{
  width:220px;height:12px;border-radius:999px;
  background:linear-gradient(90deg, var(--cyan), rgba(91,206,250,.12), rgba(110,0,112,.65));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 24px rgba(91,206,250,.22);
}
.mini-pills{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

.pill{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:900;
  font-size:12px;
}
.pill.cyan{
  background:rgba(91,206,250,.18);
  border-color:rgba(91,206,250,.35);
}

/* --- Main layout (layout 2) --- */
.layout{display:grid;grid-template-columns:300px 1fr;gap:14px}
.card{
  background:rgba(16,20,35,.72);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}

.sidebar-head h2{
  margin:0 0 6px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.86);
}
.sidebar-sub{color:rgba(255,255,255,.72);font-size:13px}

.cat{margin-top:10px}
.cat a{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 10px;border-radius:14px;
  border:1px solid transparent;
  color:var(--muted);
}
.cat a:hover{
  border-color:var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  text-decoration:none;
}
.cat a.selected{
  border-color:rgba(91,206,250,.35);
  background:rgba(91,206,250,.10);
  color:var(--text);
}
.count{color:var(--cyan);font-weight:900}

.sidebar-actions{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.hint{margin-top:12px;color:var(--muted);font-size:13px;display:grid;gap:6px}
.dot{display:inline-block;width:9px;height:9px;border-radius:999px;margin-right:8px}
.dot.cyan{background:var(--cyan);box-shadow:0 0 0 6px rgba(91,206,250,.14)}
.dot.purple{background:var(--purple);box-shadow:0 0 0 6px rgba(110,0,112,.16)}

.head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
  margin-bottom:10px;
}
.page-title{margin:0;font-size:28px}
.sub{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.head-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Buttons (main) */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.08);
  color:#fff;font-weight:900;text-decoration:none;
}
.btn:hover{background:rgba(255,255,255,.12);text-decoration:none}
.btn.cyan{background:rgba(91,206,250,.95);border-color:rgba(91,206,250,.75);color:var(--ink)}
.btn.ghost{background:rgba(255,255,255,.06)}
.btn.full{width:100%}

/* Recipe list */
.list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:rgba(10,12,22,.45);
}
.item a{color:var(--cyan);font-weight:900}
.meta{margin-top:6px;color:var(--muted);font-size:13px}

.notice{
  background:rgba(91,206,250,.10);
  border:1px solid rgba(91,206,250,.24);
  padding:12px 14px;
  border-radius:14px;
  color:var(--text);
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
  font-size:14px;
  background:rgba(7,8,12,.6);
}
.footer-inner{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;justify-content:center;
  padding:2px 8px;border-radius:999px;border:1px solid var(--line);
  margin-left:6px;
}
.chip.purple{background:rgba(110,0,112,.22)}
.chip.cyan{background:rgba(91,206,250,.18);color:var(--text)}

/* accessibility */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .list{grid-template-columns:1fr}
  .search3{min-width:0;width:100%}
  .hero3{flex-direction:column;align-items:flex-start}
  .hero3-right{justify-items:start}
  .hero3-title{font-size:34px}
}

/* --- Top nav (desktop + mobile) --- */
.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav a.btn {
  text-decoration: none;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
}

/* The nav links container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile dropdown */
@media (max-width: 1024px) { /* phones + tablets */
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;              /* hidden until opened */
    position: absolute;
    right: 16px;
    top: 64px;                  /* tweak if needed depending on header height */
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    z-index: 9999;
    min-width: 200px;

    /* match your theme-ish look */
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
  }
  .nav-links.is-open {
    display: flex;
  }
}

/* Prevent the header flex layout from shrinking the logo on small screens */
.brand3,
.brand3.brand-logo{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0;                  /* ensure no hidden padding */
  line-height: 1;              /* kill phantom vertical space */
}
/* --- Logo sizing: final override --- */
.twopweb-logo{
  height: clamp(42px, 4.5vw, 78px);
  width: auto;
  max-width: 420px;  /* keeps it from getting silly wide */
  display: block;
  line-height: 1;
}

/* Desktop: keep header on one row and let logo breathe */
@media (min-width: 1024px){
  .topbar3{
    flex-wrap: nowrap;           /* stops wrapping that makes logo feel small */
  }
  .twopweb-logo{
    height: 120px;                /* strong desktop presence */
  }
}

