/*
Theme Name: Veiled Verdicts Noir
Theme URI: https://example.com/veiled-verdicts-noir
Author: ChatGPT
Author URI: https://example.com
Description: A dark, cinematic, high-contrast WordPress theme designed for true-crime storytelling. Includes built-in logo fallback and customizable tagline.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vv-noir
Tags: blog, news, custom-logo, custom-menu, featured-images, one-column, two-columns, right-sidebar, dark, translation-ready
*/

:root {
  --vv-bg: #0b0c10;
  --vv-surface: #111319;
  --vv-surface-2: #171a22;
  --vv-text: #f2f2f2;
  --vv-muted: #b5b9c3;
  --vv-border: rgba(255,255,255,.10);
  --vv-accent: #b13a3a;
  --vv-accent-2: #315a7d;
  --vv-shadow: 0 12px 30px rgba(0,0,0,.45);
  --vv-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1100px 600px at 10% 0%, rgba(49,90,125,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(177,58,58,.18), transparent 55%),
              var(--vv-bg);
  color: var(--vv-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--vv-text); text-decoration: none; }
a:hover { color: var(--vv-accent); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--vv-border); }

.vv-container {
  width: min(1120px, calc(100% - 2.25rem));
  margin-inline: auto;
}

.vv-skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  background: var(--vv-accent);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: 10px;
  z-index: 9999;
}
.vv-skip-link:focus { top: 1rem; left: 1rem; }

.vv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(11,12,16,.66);
  border-bottom: 1px solid var(--vv-border);
}
.vv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.vv-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 220px;
}
.vv-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(177,58,58,.22), rgba(49,90,125,.22));
  border: 1px solid var(--vv-border);
  display: grid;
  place-items: center;
  box-shadow: var(--vv-shadow);
}
.vv-brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.vv-site-title {
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 1.05rem;
}
.vv-site-tagline {
  color: var(--vv-muted);
  font-size: .9rem;
}

.vv-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.vv-nav .menu {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
.vv-nav .menu a {
  display: inline-flex;
  align-items: center;
  padding: .55rem .75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--vv-muted);
}
.vv-nav .menu a:hover,
.vv-nav .current-menu-item > a {
  color: var(--vv-text);
  border-color: var(--vv-border);
  background: rgba(255,255,255,.04);
}

.vv-header-tools {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.vv-search {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--vv-border);
  background: rgba(255,255,255,.04);
}
.vv-search input[type="search"] {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--vv-text);
  width: 170px;
}
.vv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--vv-border);
  background: rgba(255,255,255,.04);
  color: var(--vv-text);
}
.vv-button:hover { border-color: rgba(177,58,58,.6); background: rgba(177,58,58,.10); }

.vv-main {
  padding: 2.1rem 0 3rem;
}
.vv-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 980px) {
  .vv-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.vv-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius);
  box-shadow: var(--vv-shadow);
}
.vv-card-inner { padding: 1.25rem; }

.vv-post {
  padding: 1.25rem;
}
.vv-post + .vv-post { border-top: 1px solid var(--vv-border); }
.vv-post h2, .vv-post h1 {
  margin: .15rem 0 .65rem;
  line-height: 1.22;
}
.vv-post-title {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}
.vv-meta {
  color: var(--vv-muted);
  font-size: .92rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
}
.vv-excerpt { color: rgba(242,242,242,.88); }

.vv-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--vv-border);
  color: var(--vv-muted);
  font-size: .85rem;
}
.vv-chip:hover { color: var(--vv-text); border-color: rgba(49,90,125,.7); }

.vv-featured {
  overflow: hidden;
  border-radius: calc(var(--vv-radius) - 6px);
  border: 1px solid var(--vv-border);
  margin: .95rem 0 1.05rem;
}

.vv-content {
  color: rgba(242,242,242,.92);
}
.vv-content p { margin: 0 0 1rem; }
.vv-content h2, .vv-content h3, .vv-content h4 {
  margin: 1.6rem 0 .75rem;
  line-height: 1.2;
}
.vv-content blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--vv-accent);
  background: rgba(177,58,58,.08);
  border-radius: 14px;
}
.vv-content code {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--vv-border);
  padding: .1rem .35rem;
  border-radius: 10px;
}
.vv-content pre {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--vv-border);
  padding: 1rem;
  border-radius: 16px;
  overflow: auto;
}

.vv-sidebar .widget {
  padding: 1.1rem 1.1rem 1.05rem;
}
.vv-sidebar .widget + .widget { border-top: 1px solid var(--vv-border); }
.vv-sidebar .widget-title {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}
.widget ul { padding-left: 1.25rem; margin: .25rem 0 0; }
.widget a { color: rgba(242,242,242,.88); }
.widget a:hover { color: var(--vv-accent); }

.vv-pagination {
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: center;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .65rem;
  border-radius: 999px;
  border: 1px solid var(--vv-border);
  background: rgba(255,255,255,.04);
  color: var(--vv-muted);
}
.page-numbers.current {
  color: #fff;
  border-color: rgba(177,58,58,.65);
  background: rgba(177,58,58,.16);
}

.vv-footer {
  border-top: 1px solid var(--vv-border);
  padding: 2rem 0;
  color: var(--vv-muted);
  background: rgba(0,0,0,.15);
}
.vv-footer a { color: var(--vv-muted); }
.vv-footer a:hover { color: var(--vv-text); }

.vv-comment-form input[type="text"],
.vv-comment-form input[type="email"],
.vv-comment-form input[type="url"],
.vv-comment-form textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--vv-border);
  border-radius: 14px;
  color: var(--vv-text);
  padding: .65rem .8rem;
}
.vv-comment-form textarea { min-height: 140px; }
.vv-comment-form input[type="submit"] {
  cursor: pointer;
  border: 1px solid rgba(177,58,58,.65);
  background: rgba(177,58,58,.16);
  color: #fff;
  padding: .6rem .95rem;
  border-radius: 999px;
}
.vv-comment-form input[type="submit"]:hover {
  background: rgba(177,58,58,.24);
}

.vv-mobile-toggle {
  display: none;
}
@media (max-width: 880px) {
  .vv-nav { display: none; }
  .vv-mobile-toggle { display: inline-flex; }
  .vv-search input[type="search"] { width: 120px; }
  .vv-nav.is-open {
    display: block;
    width: 100%;
    padding: .25rem 0 1rem;
  }
  .vv-header-inner {
    flex-wrap: wrap;
  }
  .vv-nav .menu {
    flex-direction: column;
    align-items: flex-start;
  }
  .vv-nav .menu a {
    width: 100%;
  }
}
