/* ==========================================================
   MyScriptStore — header.css
   Top logo area and navigation menu (includes/header.php).
   ========================================================== */

.site-header {
  background: #0f0d1f; border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 50;
}
.site-header .logo, .site-header .logo:hover { color: #fff; }
.site-header .logo span b { color: var(--accent); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo img { width: 40px; height: 40px; }
.logo span b { color: var(--brand); font-weight: 700; }
.logo:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #cfcbe8; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.nav a.btn-brand, .nav a.btn-brand:hover { color: #fff; }

.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.site-header .logo { gap: 12px; font-size: 28px; letter-spacing: -.03em; }
.site-header .logo img { width: 58px; height: 58px; filter: drop-shadow(0 4px 12px rgba(124,108,242,.45)); transition: transform .25s ease; }
.site-header .logo:hover img { transform: rotate(-6deg) scale(1.05); }
.site-header .container { gap: 28px; }
.nav { gap: 24px; }

/* the Custom link gets a small badge */
.nav a.nav-custom { position: relative; margin-right: 14px; }
.nav a.nav-custom::after {
  content: "NEW"; position: absolute; top: -10px; right: -24px;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .04em;
  background: var(--accent); color: var(--ink); padding: 1px 5px; border-radius: 4px;
}

/* pure-CSS mobile menu (checkbox toggle, no JavaScript) */
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 1100px) {
  .nav-toggle-label {
    display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.2); border-radius: 10px; font-size: 22px; color: #fff;
  }
  .nav {
    display: none; position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0f0d1f; border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 20px 20px;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.nav-custom { margin-right: 0; }
  .nav a.nav-custom::after { position: static; margin-left: 8px; }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
}
@media (max-width: 720px) {
  .site-header .container { height: 76px; }
  .site-header .logo { font-size: 22px; gap: 10px; }
  .site-header .logo img { width: 46px; height: 46px; }
  .nav { top: 76px; }
}
