/*
Theme Name: NeuralPaws
Theme URI: https://neuralpaws.com
Author: Abhishek Musale
Author URI: https://neuralpaws.com/about/
Description: Premium editorial theme for NeuralPaws — AI tools review publication.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: neuralpaws
*/

/* ============================================
   TOKENS
   ============================================ */
:root {
  --bg: #0C0C14;
  --bg-card: #14141F;
  --bg-card-hover: #1A1A2A;
  --bg-subtle: #111119;
  --ink: #F0EDE6;
  --ink-soft: #9B97A0;
  --ink-muted: #6B6773;
  --line: #2A2835;
  --line-light: #222130;
  --accent: #8B5CF6;
  --accent-hover: #A78BFA;
  --accent-soft: rgba(139,92,246,.12);
  --accent-glow: rgba(139,92,246,.25);
  --teal: #14B8A6;
  --teal-soft: rgba(20,184,166,.12);
  --amber: #F59E0B;
  --amber-soft: rgba(245,158,11,.12);
  --rose: #F43F5E;
  --rose-soft: rgba(244,63,94,.12);
  --green: #10B981;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --maxw: 820px;
  --wide: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

::selection { background: var(--accent-soft); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-hover); text-decoration: none; transition: color .2s; }
a:hover { color: #c4b5fd; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h4, h5, h6 { font-family: var(--sans); color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 34px); margin-top: 36px; }
h3 { font-size: clamp(18px, 2.5vw, 24px); margin-top: 28px; }
p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 6px; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}

code { background: #1e1e2e; padding: 2px 6px; border-radius: 4px; font-size: 14px; font-family: var(--mono); color: var(--accent-hover); }
pre { background: #0a0a12; color: #e5e7eb; padding: 20px; border-radius: var(--radius); overflow-x: auto; margin: 24px 0; font-size: 14px; border: 1px solid var(--line); }
pre code { background: none; padding: 0; color: inherit; }
hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
th { background: #1a1a2a; color: var(--ink); padding: 12px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--accent); }
td { border-bottom: 1px solid var(--line); padding: 12px 14px; color: var(--ink-soft); }

/* ============================================
   LAYOUT
   ============================================ */
.np-container { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.np-narrow { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER — glass morphism sticky
   ============================================ */
.np-header {
  background: rgba(12,12,20,.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.np-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.np-logo {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.np-logo:hover { color: var(--ink); }
.np-logo span { color: var(--accent); }

.np-nav { display: flex; align-items: center; }
.np-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.np-nav > ul > li { position: relative; }
.np-nav > ul > li > a {
  display: flex; align-items: center; padding: 20px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .2s; letter-spacing: .01em;
}
.np-nav > ul > li > a:hover,
.np-nav > ul > li.current-menu-item > a,
.np-nav > ul > li.current-menu-parent > a { color: var(--ink); }

.np-nav ul ul {
  display: none; position: absolute; top: 100%; left: -8px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 16px 48px rgba(0,0,0,.4);
  min-width: 240px; padding: 6px; z-index: 200;
}
.np-nav > ul > li:hover > ul { display: block; }
.np-nav ul ul li a {
  display: block; padding: 10px 14px; font-size: 13px;
  color: var(--ink-soft); text-decoration: none; border-radius: 8px; transition: all .15s;
}
.np-nav ul ul li a:hover { background: var(--accent-soft); color: var(--ink); }

.np-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.np-menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .np-menu-toggle { display: block; }
  .np-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--line); padding: 12px 24px; }
  .np-nav.open { display: block; }
  .np-nav ul { flex-direction: column; }
  .np-nav > ul > li > a { padding: 12px 0; }
  .np-nav ul ul { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: block; background: transparent; }
}

/* ============================================
   HERO — gradient text, subtle grid bg
   ============================================ */
.np-hero {
  text-align: center;
  padding: 80px 24px 56px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.np-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.np-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 56px);
}

.np-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.np-hero p {
  position: relative; z-index: 1;
  font-size: 17px; color: var(--ink-soft); max-width: 480px; margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.np-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin: 0 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.np-section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============================================
   REVIEW CARDS — glassmorphic with gradient accents
   ============================================ */
.np-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 56px;
}

.np-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.np-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity .25s;
}

.np-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,.12);
  color: inherit;
}

.np-card:hover::before { opacity: 1; }

.np-card-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(139,92,246,.3);
}

.np-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.35;
}

.np-card-cat { font-size: 12px; color: var(--ink-muted); margin-bottom: 10px; }

.np-card-excerpt {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   HUB CARDS — gradient glass with icons
   ============================================ */
.np-hub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 56px;
}

.np-hub-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}

.np-hub-card:nth-child(1) { background: linear-gradient(135deg, #1e1b4b, #6d28d9); }
.np-hub-card:nth-child(2) { background: linear-gradient(135deg, #042f2e, #0d9488); }
.np-hub-card:nth-child(3) { background: linear-gradient(135deg, #1c1917, #b45309); }

.np-hub-card::after {
  content: '→';
  position: absolute;
  top: 24px; right: 24px;
  font-size: 18px;
  opacity: .4;
  transition: opacity .2s, transform .2s;
}

.np-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  color: #fff;
}
.np-hub-card:hover::after { opacity: 1; transform: translateX(4px); }

.np-hub-card .count {
  font-size: 32px; font-weight: 800;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.5));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 2px; line-height: 1;
}

.np-hub-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #fff; }
.np-hub-card p { font-size: 13px; margin: 0; opacity: .7; }

/* ============================================
   NEWS LIST — clean with hover underline
   ============================================ */
.np-news-list { margin-bottom: 56px; }

.np-news-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; gap: 20px;
}

.np-news-title {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--ink-soft); line-height: 1.4;
  transition: color .2s;
}

.np-news-item:hover .np-news-title { color: var(--ink); }
.np-news-date { font-size: 12px; color: var(--ink-muted); white-space: nowrap; flex-shrink: 0; font-family: var(--mono); }

/* ============================================
   AUTHOR STRIP
   ============================================ */
.np-author-strip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.np-author-strip .avatar-circle {
  flex: 0 0 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #06B6D4);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  box-shadow: 0 4px 12px rgba(139,92,246,.25);
}

.np-author-strip h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 0 0 2px; color: var(--ink); }
.np-author-strip p { font-size: 13px; margin: 0; color: var(--ink-soft); }
.np-author-strip .np-btn { margin-left: auto; flex-shrink: 0; }

/* ============================================
   ARCHIVE / BLOG LISTING
   ============================================ */
.np-archive-header { padding: 40px 0 24px; }
.np-archive-header h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.np-archive-header p { color: var(--ink-soft); font-size: 15px; }

.np-post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }

.np-post-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.np-post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(139,92,246,.1);
  transform: translateY(-2px);
}

.np-post-card-thumb { width: 100%; height: 200px; object-fit: cover; }
.np-post-card-body { padding: 20px; }

.np-post-card-meta {
  font-size: 12px; color: var(--ink-muted); margin-bottom: 8px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.np-post-card-meta .cat {
  background: var(--accent-soft); color: var(--accent-hover);
  padding: 2px 8px; border-radius: 20px; font-weight: 600;
}

.np-post-card h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.np-post-card h2 a { color: var(--ink); text-decoration: none; }
.np-post-card h2 a:hover { color: var(--accent-hover); }
.np-post-card .excerpt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 640px) {
  .np-post-list, .np-card-grid, .np-hub-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SINGLE POST
   ============================================ */
.np-single-header { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 0; }
.np-breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 20px; }
.np-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.np-breadcrumb a:hover { color: var(--accent-hover); }
.np-breadcrumb .sep { margin: 0 6px; color: var(--ink-muted); }

.np-single-header h1 { margin-bottom: 16px; }

.np-post-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 14px; color: var(--ink-muted); margin-bottom: 32px;
}
.np-post-meta a { color: var(--ink-soft); }

.np-single-content {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 40px;
}
.np-single-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Post navigation */
.np-post-nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.np-post-nav a {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; text-decoration: none;
  transition: border-color .2s;
}
.np-post-nav a:hover { border-color: var(--accent); }
.np-post-nav .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 4px; }
.np-post-nav .title { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* ============================================
   BUTTONS
   ============================================ */
.np-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff; padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: all .2s; font-family: var(--sans);
  box-shadow: 0 2px 8px rgba(139,92,246,.25);
}
.np-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,.35); color: #fff; }

.np-btn-outline {
  background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.np-btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); background: transparent; }

/* ============================================
   PAGINATION
   ============================================ */
.np-pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.np-pagination a, .np-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  border: 1px solid var(--line); background: var(--bg-card); transition: all .15s;
}
.np-pagination a:hover { border-color: var(--accent); color: var(--accent-hover); }
.np-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================
   COMMENTS
   ============================================ */
.np-comments { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 40px; }
.np-comments h2 { margin-bottom: 24px; }

.comment {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.comment-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }
.comment-meta .fn { font-weight: 600; color: var(--ink); }

.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--sans);
  font-size: 15px; color: var(--ink); margin-bottom: 12px;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form input[type="submit"] {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff; padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-family: var(--sans); font-weight: 600; cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.np-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px; margin-top: 60px;
}

.np-footer-grid {
  max-width: var(--wide); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}

.np-footer-brand p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.np-footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin-bottom: 14px; font-weight: 600; }
.np-footer ul { list-style: none; margin: 0; padding: 0; }
.np-footer li { margin-bottom: 8px; }
.np-footer a { font-size: 14px; color: var(--ink-soft); }
.np-footer a:hover { color: var(--accent-hover); }

.np-footer-bottom {
  max-width: var(--wide); margin: 32px auto 0; padding: 20px 24px 0;
  border-top: 1px solid var(--line); text-align: center;
  font-size: 13px; color: var(--ink-muted);
}

@media (max-width: 768px) { .np-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .np-footer-grid { grid-template-columns: 1fr; } }

/* ============================================
   WIDGETS
   ============================================ */
.widget { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--ink-muted); margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 8px; }
.widget a { color: var(--ink-soft); font-size: 14px; }
.widget a:hover { color: var(--accent-hover); }

/* ============================================
   UTILITY
   ============================================ */
.admin-bar .np-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .np-header { top: 46px; } }

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.alignwide { max-width: calc(var(--maxw) + 120px); margin-left: auto; margin-right: auto; }

.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
