/*
Theme Name: NabNod
Theme URI: https://nabnod.com
Author: NabNod
Description: Clean affiliate blog theme for NabNod
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: nabnod
*/

:root {
  --blue: #13AFF0;
  --blue-dark: #0d8cc2;
  --blue-light: #e8f7fd;
  --blue-border: #b3e5fa;
  --text: #1a1a2e;
  --text-muted: #666680;
  --text-light: #999ab0;
  --bg: #ffffff;
  --bg-2: #f8f9fc;
  --bg-3: #f0f4f8;
  --border: #e4e8f0;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --radius: 12px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===================== HEADER ===================== */
#site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.site-logo img,
.site-logo .custom-logo {
  height: 32px !important;
  width: auto !important;
  max-width: 150px !important;
}
.site-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
}
.site-logo-text span { color: var(--blue); }
#main-nav ul { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
#main-nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .15s; }
#main-nav a:hover, #main-nav .current-menu-item > a { color: var(--blue); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text); }

/* ===================== HERO ===================== */
.hero-section {
  background: linear-gradient(160deg, #f0fbff 0%, #e8f7fd 40%, #f8f9fc 100%);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero-badge::before { content: ''; width: 5px; height: 5px; background: #fff; border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-section h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-section h1 span { color: var(--blue); }
.hero-section > p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(19,175,240,.35);
}
.hero-btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.hero-btn::after { content: '→'; }

/* ===================== SECTION HEADER ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 3rem auto 1.25rem;
  padding: 0 1.5rem;
}
.section-header h2 { font-size: 20px; font-weight: 700; color: var(--text); }
.section-header .see-all { font-size: 13px; color: var(--blue); font-weight: 600; }
.section-header .see-all:hover { color: var(--blue-dark); }

/* ===================== POSTS GRID ===================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-border); }
.post-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: auto;
  padding-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-btn-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  margin-top: 8px;
}
.post-card-btn-full:hover { background: var(--blue-dark); color: #fff; }
.post-card-btn-full::after { content: '→'; }

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: linear-gradient(160deg, #f0fbff 0%, #f8f9fc 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.page-hero-inner { max-width: 1140px; margin: 0 auto; }
.page-hero h1 { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin-bottom: 4px; }
.page-hero p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ===================== SINGLE ARTICLE ===================== */
.single-outer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.single-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.single-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.single-main .art-intro, .single-main p { font-size: 15px; color: #444; line-height: 1.85; margin-bottom: 1rem; }
.single-main .art-section-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin: 0 0 .85rem 0;
  display: flex; align-items: center; gap: 8px;
}
.single-main .art-section-title::before { content: ''; width: 3px; height: 16px; background: var(--blue); border-radius: 2px; flex-shrink: 0; }
.single-main .why-box { background: var(--blue-light); border: 1px solid var(--blue-border); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.single-main .why-box p { color: #2a5f7a; font-size: 14px; line-height: 1.8; margin: 0; }
.single-main .pros-list { list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1.5rem; padding: 0; box-shadow: var(--shadow-sm); }
.single-main .pros-list li { padding: 11px 14px 11px 42px; position: relative; font-size: 14px; color: #444; border-bottom: 1px solid var(--border); line-height: 1.6; }
.single-main .pros-list li:last-child { border-bottom: none; }
.single-main .pros-list li::before { content: '✓'; position: absolute; left: 14px; top: 11px; color: var(--blue); font-weight: 700; font-size: 13px; }
.single-main .limits-box { background: #fffbf0; border: 1px solid #f0d9a0; border-left: 3px solid #e6a817; border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.single-main .limits-box p { color: #7a5a10; font-size: 14px; line-height: 1.8; margin: 0; }
.single-main .for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
.single-main .for-col { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
.single-main .for-col .col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; display: block; }
.single-main .for-col.for-yes .col-title { color: #2a7a3a; }
.single-main .for-col.for-no .col-title { color: #c05a00; }
.single-main .for-col p, .single-main .for-col ul { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.65; list-style: none; padding: 0; }
.single-main .for-col ul li { padding: 2px 0 2px 12px; position: relative; font-size: 13px; color: var(--text-muted); }
.single-main .for-col.for-yes ul li::before { content: '•'; position: absolute; left: 0; color: #2a7a3a; font-weight: 700; }
.single-main .for-col.for-no ul li::before { content: '•'; position: absolute; left: 0; color: #c05a00; font-weight: 700; }
.single-main .verdict-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.single-main .verdict-stars { color: #f5a623; font-size: 24px; letter-spacing: 2px; margin-bottom: 10px; }
.single-main .verdict-box p { color: #555; font-size: 14px; line-height: 1.8; margin: 0; }
.single-main .amazon-cta-wrap { text-align: center; margin: 2rem 0 .5rem; }
.single-main .amazon-cta-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 15px 44px; border-radius: var(--radius-sm); text-decoration: none; transition: background .2s, transform .15s; box-shadow: 0 4px 14px rgba(19,175,240,.35); }
.single-main .amazon-cta-btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.single-main .amazon-disclaimer { text-align: center; font-size: 11px; color: var(--text-light); margin-top: .5rem; margin-bottom: 1.75rem; font-style: italic; }

/* Sidebar */
.single-sidebar { position: sticky; top: 76px; }
.sidebar-widget { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-widget h3 { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.recent-post-item { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item a { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; display: block; }
.recent-post-item a:hover { color: var(--blue); }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 2rem 1.5rem 4rem; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--bg); text-decoration: none; transition: all .2s; }
.pagination .current, .pagination a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===================== FOOTER ===================== */
#site-footer { background: var(--text); padding: 3.5rem 1.5rem 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; max-width: 1140px; margin: 0 auto; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .footer-logo { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.03em; margin-bottom: .6rem; display: block; }
.footer-brand .footer-logo span { color: var(--blue); }
.footer-brand p { color: rgba(255,255,255,.4); font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-col ul li a:hover { color: var(--blue); }
.footer-col p { color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.7; }
.footer-bottom { text-align: center; padding: 1.25rem 0; font-size: 12px; color: rgba(255,255,255,.25); max-width: 1140px; margin: 0 auto; }

/* ===================== HIDE WP DEFAULTS ===================== */
.entry-header { display: none !important; }
.page-title-banner { display: none !important; }
.art-meta { display: none !important; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) { .single-outer { grid-template-columns: 1fr; } .single-sidebar { position: static; } .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 28px; }
  .single-title { font-size: 22px; }
  .single-main .for-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  #main-nav { display: none; }
  #main-nav.open { display: block; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; box-shadow: var(--shadow); }
  #main-nav.open ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: block; }
}

/* ===================== SECUNDARIO ARTICLE STRUCTURE ===================== */

.nabnod-intro {
  font-size: 16px;
  color: #333;
  line-height: 1.9;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fbff 0%, #e8f7fd 100%);
  border-radius: 12px;
  border-left: 4px solid #13AFF0;
}

/* ── STANDOUT BOX ── */
.nabnod-standout {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(19,175,240,.08);
}
.nabnod-standout-title {
  background: linear-gradient(135deg, #13AFF0 0%, #0d8cc2 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .85rem 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nabnod-standout-title::before { content: '✦'; font-size: 14px; }
.nabnod-standout-body { padding: 1.5rem; }
.nabnod-standout-body p {
  font-size: 14px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #b3e5fa;
}
.nabnod-standout-body p:last-child { margin-bottom: 0; }

/* ── REAL TALK BOX ── */
.nabnod-real-talk {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(230,168,23,.08);
}
.nabnod-real-talk-title {
  background: linear-gradient(135deg, #e6a817 0%, #c4860a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .85rem 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nabnod-real-talk-title::before { content: '💬'; font-size: 14px; }
.nabnod-real-talk-body { padding: 1.5rem; }
.nabnod-real-talk-body p { font-size: 14px; color: #555; line-height: 1.85; margin: 0; }

/* ── WORTH IT GRID ── */
.nabnod-worth-section { margin-bottom: 2rem; }
.nabnod-worth-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nabnod-worth-section-title::before { content: ''; width: 20px; height: 2px; background: #13AFF0; }
.nabnod-worth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nabnod-worth-col {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nabnod-worth-col .worth-header {
  padding: .75rem 1.1rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nabnod-worth-col.worth-yes { border: 1px solid #c8ecd4; }
.nabnod-worth-col.worth-yes .worth-header { background: #e8f8ed; color: #1a7a32; }
.nabnod-worth-col.worth-yes .worth-header::before { content: '✓'; font-size: 14px; font-weight: 800; }
.nabnod-worth-col.worth-no { border: 1px solid #fde0c8; }
.nabnod-worth-col.worth-no .worth-header { background: #fef0e6; color: #c05a00; }
.nabnod-worth-col.worth-no .worth-header::before { content: '✗'; font-size: 14px; font-weight: 800; }
.nabnod-worth-col ul { list-style: none; padding: .75rem 1.1rem; margin: 0; background: #fff; }
.nabnod-worth-col ul li {
  padding: 6px 0 6px 16px;
  position: relative;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  border-bottom: 1px solid #f4f4f4;
}
.nabnod-worth-col ul li:last-child { border-bottom: none; }
.nabnod-worth-col.worth-yes ul li::before { content: '→'; position: absolute; left: 0; color: #1a7a32; font-weight: 700; font-size: 12px; }
.nabnod-worth-col.worth-no ul li::before { content: '→'; position: absolute; left: 0; color: #c05a00; font-weight: 700; font-size: 12px; }

/* ── BOTTOM LINE ── */
.nabnod-bottom-line {
  background: linear-gradient(135deg, #f0fbff 0%, #e0f4fc 100%);
  border: 1px solid #b3e5fa;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nabnod-bottom-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #13AFF0, #0d8cc2);
}
.nabnod-stars {
  font-size: 28px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  line-height: 1;
}
.nabnod-stars .star-filled { color: #13AFF0; }
.nabnod-stars .star-empty { color: #cce7f5; }
.nabnod-bottom-line p {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .nabnod-worth-grid { grid-template-columns: 1fr; }
  .nabnod-intro { padding: 1.1rem; }
}
