/* NyxScan shared theme — drop in /public/assets/css/nyx-theme.css */

:root{
  --nyx-bg:#0e0e10;
  --nyx-panel:#16161a;
  --nyx-primary:#6c7cff;
  --nyx-text:#f2f2f2;
  --nyx-muted:#a1a1aa;
  --card-radius:14px;
}

/* Base */
html,body{ background:var(--nyx-bg); color:var(--nyx-text); }
a{ color:inherit; text-decoration:none; }

/* Header / Navbar */
.nyx-header{ background:#0b0b0d; box-shadow:0 2px 24px rgba(0,0,0,.35); }
.nyx-header .navbar{ --bs-navbar-color: var(--nyx-muted); --bs-navbar-active-color:#fff; }
.navbar-toggler-icon{ filter: invert(1); }
.nyx-nav a{ padding:12px 14px; border-radius:999px; color:var(--nyx-muted); }
.nyx-nav a.active,.nyx-nav a:hover{ color:var(--nyx-text); background:rgba(255,255,255,.06); }

/* Buttons */
.btn-nyx{ background:var(--nyx-primary); color:#fff; border:none; border-radius:10px; padding:.6rem 1rem; }
.btn-ghost{ background:transparent; color:var(--nyx-text); border:1px solid rgba(255,255,255,.25); border-radius:10px; padding:.5rem .9rem; }
.btn-ghost.btn-sm{ padding:.28rem .6rem; line-height:1; }

/* Panels and cards */
.panel{ background:var(--nyx-panel); border:1px solid rgba(255,255,255,.07); border-radius:16px; }
.nyx-card{ background:var(--nyx-panel); border:1px solid rgba(255,255,255,.06); border-radius:var(--card-radius); transition:transform .15s ease, box-shadow .15s ease; }
.nyx-card:hover{ transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,0,0,.35); }
.nyx-card .thumb{ width:100%; aspect-ratio:3/4; object-fit:cover; border-top-left-radius:var(--card-radius); border-top-right-radius:var(--card-radius); }
.nyx-card .body{ padding:12px 14px; }
.nyx-card .body h6{ margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.95rem; line-height:1.25; min-height:44px; }
.nyx-tags{ list-style:none; display:flex; gap:6px; padding:0; margin:6px 0 0; font-size:.8rem; color:var(--nyx-muted); }

/* Support cards (Discord / Donar / Random) */
.support-card{ background:var(--nyx-panel); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:12px 14px; display:flex; align-items:center; gap:12px; min-height:84px; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; color:inherit; }
.support-card:hover{ transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,0,0,.35); border-color:rgba(255,255,255,.18); }
.support-card img{ width:44px; height:44px; object-fit:cover; border-radius:12px; background:#0b0b0d; border:1px solid rgba(255,255,255,.08); }
.support-card h5{ font-size:1rem; margin:0 0 2px; }

/* Hero */
.hero{ padding:28px 0 32px; }
.hero-card{ position:relative; height:360px; border-radius:24px; overflow:hidden; display:block; }
.hero-card .cover{ position:absolute; inset:0; background-position:center; background-size:cover; }
.hero-card .shade{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.85) 92%); }
.hero-card .content{ position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:flex-end; padding:24px 22px; }
.hero-card h2{ font-weight:800; letter-spacing:.2px; margin-bottom:.35rem; }

/* Categories (tiles) */
.cat-item img{ width:100%; height:160px; object-fit:cover; border-radius:16px; }
.cat-item h3{ font-size:1.05rem; margin:.6rem 0 .1rem; }
.cat-item span{ color:var(--nyx-muted); }

/* Detail page */
.banner{ position:relative; min-height:360px; border-radius:24px; overflow:hidden; }
.banner .bg{ position:absolute; inset:0; background-position:center; background-size:cover; filter:brightness(.6) blur(2px); transform:scale(1.06); }
.banner .shade{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,.85) 85%); }
.banner .content{ position:relative; z-index:2; padding:24px; display:flex; gap:20px; align-items:flex-end; height:100%; }
.poster{ width:180px; height:240px; object-fit:cover; border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.08); }
.tag{ display:inline-block; font-size:.8rem; padding:.25rem .5rem; border-radius:999px; color:var(--nyx-text); border:1px solid rgba(255,255,255,.2); margin:0 .25rem .35rem 0; }
.cap-card{ background:var(--nyx-panel); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:10px; display:flex; align-items:center; gap:12px; transition:transform .15s ease, box-shadow .15s ease; cursor:pointer; }
.cap-card:hover{ transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,0,0,.35); }
.cap-thumb{ width:76px; height:76px; object-fit:cover; border-radius:10px; }

/* Search / Projects shared */
.filter-box{ background:var(--nyx-panel); border-radius:var(--card-radius); padding:16px; border:1px solid rgba(255,255,255,.08); }
.alphabet{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0; }
.alphabet a{ display:inline-block; padding:6px 10px; border-radius:999px; color:var(--nyx-muted); border:1px solid rgba(255,255,255,.12); }
.alphabet a.active,.alphabet a:hover{ color:var(--nyx-text); border-color:rgba(255,255,255,.35); }
.badge-soft{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); color:var(--nyx-text); }

/* Spacing rhythm */
.section-title{ margin:8px 0 14px; }

/* Responsive tweaks */
@media (max-width: 991px){
  .hero{ padding-top:12px; }
  .hero-card{ height:260px; }
}
@media (max-width: 768px){
  .hero-card{ height:220px; }
  .hero-card .content{ padding:12px; }
  .hero-card h2{ font-size:1.1rem; margin-bottom:.25rem; }
  .hero-card p{ font-size:.85rem; margin-bottom:.5rem; }
  .btn-nyx{ padding:6px 10px; font-size:.8rem; border-radius:8px; }
}
@media (max-width: 576px){
  .support-card{ flex-direction:row; align-items:center; padding:10px 12px; min-height:auto; }
  .support-card img{ width:40px; height:40px; }
  .support-card h5{ font-size:.95rem; }
  .support-card .btn-ghost.btn-sm{ padding:.2rem .5rem; font-size:.8rem; }
  .cat-item img{ height:120px; }
  .cat-item h3{ font-size:1rem; }
  .cat-item span{ font-size:.85rem; }
}
