/* ═══════════════════════════════════════
   AiToolsWallah - Frontend CSS
   AIxploria-inspired Design
═══════════════════════════════════════ */

:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --accent: #f59e0b;
  --accent2: #10b981;
  --bg: #f4f6fb;
  --white: #ffffff;
  --text: #1e1b4b;
  --muted: #64748b;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --section-bg: #eef2ff;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --shadow: 0 2px 16px rgba(79, 70, 229, 0.08);
  --shadow-hover: 0 8px 32px rgba(79, 70, 229, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
}

.dark {
  --bg: #0a0f1e;
  --white: #111827;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --card-bg: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --section-bg: rgba(99, 102, 241, 0.1);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ── NAVBAR ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 58px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-logo span {
  color: #f59e0b;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  padding: 4px 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-dark-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .2s;
}

.btn-dark-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
  padding: 56px 32px 40px;
  text-align: center;
}

.dark .hero {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid #c7d2fe;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-stat {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-stat strong {
  color: var(--primary);
  font-weight: 700;
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
  gap: 10px;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar select {
  background: var(--bg);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* FILTER TAGS */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 32px 0;
}

.tag {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.tag.active,
.tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── SECTIONS ── */


.section {
  padding: 48px 32px;
}

.section-alt {
  background: var(--white);
}

.section-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.see-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 99px;
  transition: all .2s;
}

.see-all:hover {
  border-color: var(--primary);
  background: var(--section-bg);
}

/* ── TOOL CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 20px 18px 16px;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d2fe;
}

.card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-votes {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: 8px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.card-cat {
  font-size: 11px;
  color: var(--primary);
  background: var(--section-bg);
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  margin-top: 2px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 8px;
  flex-shrink: 0;
}

/* BADGES */
.badge-free {
  background: #dcfce7;
  color: #16a34a;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-freemium {
  background: #e0e7ff;
  color: #4338ca;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-paid {
  background: #fef3c7;
  color: #d97706;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-trial {
  background: #fce7f3;
  color: #be185d;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dark .badge-free {
  background: rgba(22, 163, 74, 0.15);
  color: #86efac;
}

.dark .badge-freemium {
  background: rgba(67, 56, 202, 0.2);
  color: #a5b4fc;
}

.dark .badge-paid {
  background: rgba(217, 119, 6, 0.15);
  color: #fcd34d;
}

.dark .badge-trial {
  background: rgba(190, 24, 93, 0.15);
  color: #f9a8d4;
}

.visit-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.visit-btn:hover {
  opacity: .88;
  color: #fff;
}


/* ── CATEGORY CARDS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.cat-card:hover {
  border-color: #a5b4fc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--primary);
}

.cat-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.cat-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.cat-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── NEWS CARDS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .22s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.news-thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #c7d2fe, #ddd6fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 14px 14px 16px;
}

.news-tag {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  background: var(--section-bg);
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
}

.news-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--text);
}

.news-date {
  font-size: 11px;
  color: var(--muted);
}

.news-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── BLOG CARDS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .22s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.blog-img {
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-img.g1 {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.blog-img.g2 {
  background: linear-gradient(135deg, #0d9488, #059669);
}

.blog-img.g3 {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.blog-body {
  padding: 14px;
}

.blog-tag {
  font-size: 11px;
  color: #7c3aed;
  background: #ede9fe;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
}

.dark .blog-tag {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.blog-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--text);
}

.blog-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 32px 48px;
  margin-top: 2%;
}

.cta-banner h2 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-banner p {
  color: #c7d2fe;
  font-size: 14px;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border: none;
  padding: 10px 26px;
  border-radius: 99px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-white:hover {
  background: #e0e7ff;
}

/* ── INFO SECTIONS ── */
.info-section {
  padding: 60px 32px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.info-section.reverse {
  flex-direction: row-reverse;
}

.info-bg-white {
  background: var(--white);
}

.info-bg-teal {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.info-bg-purple {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.info-bg-orange {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.info-bg-blue {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}

.dark .info-bg-white {
  background: var(--card-bg);
}

.dark .info-bg-teal {
  background: rgba(16, 185, 129, 0.05);
}

.dark .info-bg-purple {
  background: rgba(99, 102, 241, 0.05);
}

.dark .info-bg-orange {
  background: rgba(245, 158, 11, 0.05);
}

.dark .info-bg-blue {
  background: rgba(59, 130, 246, 0.05);
}

.info-img {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
}

.info-content {
  flex: 1;
  min-width: 260px;
}

.label-pill {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.info-content h2 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.check {
  color: var(--primary);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── NEWSLETTER ── */
.nl-section {
  padding: 60px 32px;
  text-align: center;
  background: linear-gradient(135deg, #eef2ff, #f4f6fb);
}

.dark .nl-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), var(--bg));
}

.nl-section h3 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.nl-section p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.nl-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.nl-form input {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 99px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.nl-form input:focus {
  border-color: var(--primary);
}

.nl-form button {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity .2s;
}

.nl-form button:hover {
  opacity: .9;
}

/* ── FOOTER ── */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 32px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-logo {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

.footer-brand-logo span {
  color: #f59e0b;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.footer-col h4 {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  transition: color .2s;
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #94a3b8;
  transition: all .2s;
  cursor: pointer;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ── SINGLE PAGE ── */
.page-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  list-style: none;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 6px;
  color: var(--muted);
}

.single-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 32px;
}

.single-content {
  min-width: 0;
}

.single-sidebar {
  min-width: 0;
}

.content-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.sidebar-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 36px 32px 28px;
  text-align: center;
}

.page-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ── RESULTS BAR ── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
}

.results-bar strong {
  color: var(--text);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 56px 20px;
}

.empty-icon {
  font-size: 52px;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.page-link {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  display: inline-block;
  text-decoration: none;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.page-link.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── POST CONTENT ── */
.post-content {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--text);
  font-weight: 700;
  margin: 24px 0 12px;
}

.post-content h1 {
  font-size: 24px;
}

.post-content h2 {
  font-size: 20px;
}

.post-content h3 {
  font-size: 17px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 16px 22px;
}

.post-content li {
  margin-bottom: 6px;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.post-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
}

.detail-featured-image {
  width: calc(100% + 48px);
  aspect-ratio: 16 / 9;
  max-height: 520px;
  margin: -24px -24px 24px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--border);
  background: #f5efe0;
}

.detail-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .detail-featured-image {
    width: calc(100% + 48px);
    aspect-ratio: 4 / 3;
    max-height: 360px;
    margin: -24px -24px 18px;
  }
}

@media (max-width: 480px) {
  .detail-featured-image {
    aspect-ratio: 1 / 1;
    max-height: 320px;
  }
}

.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 10px 16px;
  background: var(--section-bg);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.post-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
  border: 1px solid var(--border);
}

.post-content pre {
  background: var(--bg);
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
}

/* ── PROMPT CARDS ── */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.prompt-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .22s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.prompt-card:hover {
  border-color: #a5b4fc;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.prompt-header {
  height: 140px;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
}

.prompt-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-feat {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
}

.prompt-tool {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
}

.prompt-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prompt-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.prompt-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.prompt-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.prompt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s;
}

.copy-btn:hover {
  opacity: .88;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.view-btn:hover {
  border-color: var(--primary);
  background: var(--section-bg);
}

/* ── PROMPTS PHOTO GALLERY ── */
.prompt-gallery-section {
  padding-top: 42px;
}

.prompt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 8px;
  gap: 10px;
}

.prompt-gallery-tile {
  position: relative;
  display: block;
  grid-row: span 27;
  min-height: 216px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 8px;
  background: #efe5cb;
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 24, 0.08);
  isolation: isolate;
}

.prompt-gallery-tile--wide {
  grid-column: span 2;
  grid-row: span 25;
}

.prompt-gallery-tile--tall {
  grid-row: span 36;
}

.prompt-gallery-tile--large {
  grid-column: span 2;
  grid-row: span 40;
}

.prompt-gallery-tile img,
.prompt-gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.prompt-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 247, 214, 0.52), transparent 34%),
    linear-gradient(135deg, #14532d, #0f766e 58%, #f59e0b);
  color: #fff7d6;
  font-size: 42px;
}

.prompt-gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 14, 10, 0) 34%, rgba(8, 14, 10, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 14, 10, 0.24), rgba(8, 14, 10, 0) 30%);
  opacity: 0.9;
  transition: opacity 0.28s ease;
}

.prompt-gallery-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  transform: translateY(4px);
  transition: transform 0.28s ease;
}

.prompt-gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-gallery-meta span,
.prompt-gallery-featured {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  color: #14532d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 9px;
}

.prompt-gallery-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.prompt-gallery-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.prompt-gallery-tile:hover {
  color: #fff;
  box-shadow: 0 14px 32px rgba(23, 32, 24, 0.16);
}

.prompt-gallery-tile:hover img,
.prompt-gallery-tile:hover .prompt-gallery-placeholder {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.prompt-gallery-tile:hover .prompt-gallery-overlay {
  transform: translateY(0);
}

.dark .prompt-gallery-tile {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1e293b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 900px) {
  .prompt-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .prompt-gallery-section {
    padding: 26px 12px;
  }

  .prompt-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 7px;
  }

  .prompt-gallery-tile,
  .prompt-gallery-tile--wide,
  .prompt-gallery-tile--tall,
  .prompt-gallery-tile--large {
    grid-column: span 1;
    grid-row: span 34;
    min-height: 238px;
  }

  .prompt-gallery-overlay {
    padding: 14px;
  }
}

/* ── SOCIAL ACTION BTN ── */
.social-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  text-decoration: none;
}

.social-action-btn:hover {
  color: var(--primary);
  background: var(--section-bg);
}

.social-action-btn i {
  font-size: 16px;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── TEXT HELPERS ── */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .single-wrap {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 14px;
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-logo {
    font-size: 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    gap: 2px;
    padding-bottom: 4px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 12px;
    white-space: nowrap;
    padding: 5px 10px;
  }

  .nav-right {
    gap: 6px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 36px 16px 28px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .search-bar {
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 10px 12px;
  }

  .search-bar select {
    border-left: none;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  .filter-bar {
    padding: 16px 16px 0;
    gap: 6px;
  }

  .tag {
    padding: 5px 12px;
    font-size: 11px;
  }

  .section {
    padding: 32px 16px;
  }

  .section-title {
    font-size: 18px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card {
    padding: 14px 12px 12px;
  }

  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .card-name {
    font-size: 13px;
  }

  .card-desc {
    font-size: 12px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-card {
    padding: 12px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta-banner {
    margin: 0 16px 32px;
    padding: 28px 24px;
  }

  .cta-banner h2 {
    font-size: 18px;
  }

  .info-section {
    padding: 40px 16px;
    gap: 28px;
  }

  .info-img {
    flex: 0 0 100px;
    font-size: 60px;
  }

  .info-content h2 {
    font-size: 18px;
  }

  .nl-section {
    padding: 36px 16px;
  }

  .nl-section h3 {
    font-size: 20px;
  }

  .nl-form {
    flex-direction: column;
  }

  .nl-form input,
  .nl-form button {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  footer {
    padding: 32px 16px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .single-wrap {
    padding: 0 14px;
    margin: 16px auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .prompts-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 14px;
  }
}


/* ══════════════════════════════
   SINGLE TOOL PAGE - AIXPLORIA STYLE
══════════════════════════════ */

/* Tool Header */
.tool-header-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.tool-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tool-header-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.tool-header-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.tool-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-header-info {
  flex: 1;
  min-width: 0;
}

.tool-header-name {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.tool-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.tool-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.tool-visit-btn:hover {
  opacity: .88;
  color: white;
}

.tool-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all .2s;
}

.tool-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Tool Page Layout */
.tool-page-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1350px;
  margin: 24px auto;
  padding: 0 32px;
}

.tool-page-content {
  min-width: 0;
}

.tool-page-sidebar {
  min-width: 0;
}

/* Tool Details Grid */
.tool-details-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tool-detail-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.tool-detail-row:last-child {
  border-bottom: none;
}

.tool-detail-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  width: 110px;
  flex-shrink: 0;
}

.tool-detail-value {
  font-size: 13px;
  color: var(--text);
  flex: 1;
}

.related-tool-card-section .section-header.compact {
  align-items: flex-start;
  margin-bottom: 18px;
}

.related-tool-card-section .section-title {
  font-size: 20px;
}

.tool-related-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-related-card-grid .card {
  min-height: 245px;
}

@media (max-width: 768px) {
  .tool-related-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .tool-page-wrap {
    grid-template-columns: 1fr;
  }

  .tool-page-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .tool-header-inner {
    padding: 18px 16px;
    flex-direction: column;
  }

  .tool-header-right {
    align-items: flex-start;
  }

  .tool-header-name {
    font-size: 20px;
  }

  .tool-header-logo {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .tool-page-wrap {
    padding: 0 14px;
    margin: 16px auto;
    gap: 16px;
  }

  .tool-visit-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 36px 32px 28px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.prompt-header {
  height: 160px;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
  cursor: zoom-in;
}

/* ── AI NETWORK HERO BACKGROUND ── */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.14), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}

.dark .hero,
.dark .page-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.13), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(245, 158, 11, 0.11), transparent 32%),
    linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, var(--bg) 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 246, 251, 0.28), rgba(244, 246, 251, 0.82));
}

.dark .hero::before,
.dark .page-hero::before {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.18), rgba(10, 15, 30, 0.78));
}

.hero-network-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.page-hero> :not(.hero-network-bg) {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-network-bg {
    opacity: 0.42;
  }
}



/* ── CJP-INSPIRED EDITORIAL AI THEME ── */
:root {
  --primary: #14532d;
  --primary-light: #16a34a;
  --accent: #f59e0b;
  --accent2: #0891b2;
  --bg: #f7f0df;
  --white: #fffaf0;
  --text: #172018;
  --muted: #5f6659;
  --card-bg: #fffaf0;
  --border: rgba(23, 32, 24, 0.18);
  --section-bg: #efe5cb;
  --gradient: linear-gradient(135deg, #14532d 0%, #0f766e 55%, #f59e0b 100%);
  --shadow: 0 12px 0 rgba(23, 32, 24, 0.08);
  --shadow-hover: 0 16px 0 rgba(20, 83, 45, 0.14);
}

.dark {
  --bg: #f7f0df;
  --white: #fffaf0;
  --text: #172018;
  --muted: #5f6659;
  --card-bg: #fffaf0;
  --border: rgba(23, 32, 24, 0.18);
  --section-bg: #efe5cb;
}

body {
  background:
    linear-gradient(90deg, rgba(20, 83, 45, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 83, 45, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 14% 10%, rgba(245, 158, 11, 0.18), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(8, 145, 178, 0.12), transparent 28%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -12%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(110deg, transparent 20%, rgba(20, 83, 45, 0.12) 38%, transparent 55%),
    linear-gradient(300deg, transparent 30%, rgba(245, 158, 11, 0.12) 46%, transparent 62%);
  filter: blur(24px);
  transform: translate3d(0, 0, 0) rotate(-4deg);
  animation: aiWaveMotion 18s ease-in-out infinite alternate;
  animation-duration: 18s;
}

@keyframes aiWaveMotion {
  0% {
    transform: translate3d(-3%, -1%, 0) rotate(-5deg) scale(1);
  }

  50% {
    transform: translate3d(2%, 2%, 0) rotate(-2deg) scale(1.04);
  }

  100% {
    transform: translate3d(4%, -2%, 0) rotate(3deg) scale(1.02);
  }
}

.top-ticker {
  position: sticky;
  top: 0;
  z-index: 260;
  overflow: hidden;
  background: #172018;
  color: #fff7d6;
  border-bottom: 2px solid rgba(245, 158, 11, 0.65);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 24s linear infinite;
}

.ticker-track span {
  padding: 8px 22px;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

nav {
  top: 31px;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 8px 0 rgba(23, 32, 24, 0.06);
  backdrop-filter: blur(14px);
}

.nav-logo,
.footer-brand-logo {
  color: #14532d;
  letter-spacing: 0;
}

.nav-logo span,
.footer-brand-logo span {
  color: #b45309;
}

.nav-links a {
  color: #3f473b;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  background: #172018;
  border-color: #172018;
  color: #fff7d6;
}

.btn-primary,
.visit-btn,
.copy-btn,
.page-link.active,
.label-pill,
.nl-form button {
  background: #172018;
  color: #fff7d6;
  box-shadow: 0 5px 0 rgba(20, 83, 45, 0.22);
}

.btn-outline,
.btn-dark-toggle,
.search-bar,
.nl-form input,
.results-bar,
.page-link,
.view-btn {
  background: rgba(255, 250, 240, 0.92);
  border: 2px solid var(--border);
}

.btn,
.btn-dark-toggle,
.tag,
.see-all,
.page-link,
.view-btn {
  border-radius: 999px;
}

.hero,
.page-hero {
  border-bottom: 2px solid var(--border);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.24), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(20, 83, 45, 0.14), transparent 30%),
    linear-gradient(180deg, #fff7d6 0%, #f7f0df 100%);
}

.hero::before,
.page-hero::before {
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.16), rgba(247, 240, 223, 0.72));
}

.hero h1,
.page-hero h1,
.section-title,
.cta-banner h2,
.info-content h2,
.nl-section h3 {
  color: #172018;
  font-weight: 800;
}

.hero h1 span,
.hero-stat strong,
.see-all,
.view-btn,
.breadcrumb a,
.post-content a,
.check {
  color: #14532d;
}

.hero-badge,
.card-cat,
.news-tag,
.blog-tag,
.card-votes,
.prompt-preview,
.tag {
  background: #fff7d6;
  border: 2px solid rgba(23, 32, 24, 0.14);
  color: #14532d;
}

.tag.active,
.tag:hover {
  background: #172018;
  border-color: #172018;
  color: #fff7d6;
}

.search-bar {
  max-width: 620px;
  box-shadow: 0 8px 0 rgba(23, 32, 24, 0.09);
}

.search-bar input,
.search-bar select,
.nl-form input {
  color: #172018;
}

.search-bar input::placeholder {
  color: #6b705f;
}

.search-bar select {
  flex: 0 0 190px;
  width: 190px;
  min-width: 150px;
  max-width: 42%;
  background: #efe5cb;
  border-radius: 999px;
}

.search-bar input[name="search"] {
  min-width: 160px;
}

.search-bar select option {
  background: #111827;
  color: #f8fafc;
}

.section-alt,
.info-bg-white,
.info-bg-teal,
.info-bg-purple,
.info-bg-orange,
.info-bg-blue,
.nl-section,
.page-banner {
  background: rgba(255, 250, 240, 0.62);
}

.card,
.cat-card,
.news-card,
.blog-card,
.content-card,
.sidebar-card,
.prompt-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.card::before,
.cat-card::before,
.news-card::before,
.blog-card::before,
.prompt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 42%);
}

.cat-card,
.news-card,
.blog-card,
.prompt-card {
  position: relative;
}

.card:hover,
.cat-card:hover,
.news-card:hover,
.blog-card:hover,
.prompt-card:hover {
  border-color: rgba(20, 83, 45, 0.42);
}

.card-icon,
.cat-icon-wrap {
  background: #efe5cb !important;
  border: 2px solid rgba(23, 32, 24, 0.12);
  color: #14532d;
}

.news-thumb,
.blog-img.g1,
.blog-img.g2,
.blog-img.g3,
.prompt-header,
.cta-banner {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 247, 214, 0.42), transparent 34%),
    linear-gradient(135deg, #14532d, #0f766e 58%, #f59e0b);
}

.cta-banner {
  border: 2px solid rgba(23, 32, 24, 0.12);
}

.cta-banner p {
  color: #fff7d6;
}

.btn-white {
  color: #172018;
  background: #fff7d6;
  border: 2px solid rgba(23, 32, 24, 0.12);
}

footer {
  background: #172018;
  color: #d6dccd;
  border-top: 3px solid #f59e0b;
}

.footer-col h4 {
  color: #fff7d6;
}

.footer-col a,
.footer-desc {
  color: #c9d0c0;
}

.social-btn {
  background: rgba(255, 247, 214, 0.1);
  color: #fff7d6;
}

.divider {
  background: linear-gradient(90deg, transparent, rgba(20, 83, 45, 0.34), transparent);
}

@media (max-width: 768px) {
  nav {
    top: 31px;
  }

  .top-ticker {
    font-size: 10px;
  }

  .search-bar input[name="search"] {
    min-width: 0;
  }

  .search-bar select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .ticker-track {
    animation: none;
  }
}

/* ── CJP-LIKE FONT + BUTTON MOTION ── */
body {
  font-family: 'Archivo', 'Manrope', system-ui, sans-serif;
}

.nav-logo,
.footer-brand-logo,
.hero h1,
.page-hero h1,
.section-title,
.cta-banner h2,
.info-content h2,
.nl-section h3,
.card-name,
.cat-name,
.news-title,
.blog-title,
.prompt-title {
  font-family: 'Archivo', 'Manrope', system-ui, sans-serif;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  font-weight: 900;
}

.btn,
.btn-dark-toggle,
.tag,
.see-all,
.visit-btn,
.copy-btn,
.view-btn,
.btn-white,
.page-link,
.social-action-btn,
.nl-form button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: 'Archivo', 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  transform: translateY(0);
  transition:
    transform 0.22s cubic-bezier(.2, .9, .2, 1),
    box-shadow 0.22s cubic-bezier(.2, .9, .2, 1),
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.btn::before,
.tag::before,
.see-all::before,
.visit-btn::before,
.copy-btn::before,
.view-btn::before,
.btn-white::before,
.page-link::before,
.nl-form button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 247, 214, 0.04) 24%, rgba(255, 247, 214, 0.55) 46%, rgba(255, 247, 214, 0.04) 66%, transparent 100%);
  transform: translateX(-120%) skewX(-16deg);
  transition: transform 0.62s cubic-bezier(.2, .9, .2, 1);
}

.btn:hover,
.tag:hover,
.see-all:hover,
.visit-btn:hover,
.copy-btn:hover,
.view-btn:hover,
.btn-white:hover,
.page-link:hover,
.social-action-btn:hover,
.nl-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(23, 32, 24, 0.16), 0 18px 28px rgba(23, 32, 24, 0.1);
}

.btn:hover::before,
.tag:hover::before,
.see-all:hover::before,
.visit-btn:hover::before,
.copy-btn:hover::before,
.view-btn:hover::before,
.btn-white:hover::before,
.page-link:hover::before,
.nl-form button:hover::before {
  transform: translateX(120%) skewX(-16deg);
}

.btn:active,
.tag:active,
.see-all:active,
.visit-btn:active,
.copy-btn:active,
.view-btn:active,
.btn-white:active,
.page-link:active,
.social-action-btn:active,
.nl-form button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 2px 0 rgba(23, 32, 24, 0.18);
}

.btn-primary::after,
.copy-btn::after,
.btn-white::after,
.nl-form button::after {
  content: "→";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.22s cubic-bezier(.2, .9, .2, 1);
}

.btn-primary:hover::after,
.copy-btn:hover::after,
.btn-white:hover::after,
.nl-form button:hover::after {
  transform: translateX(4px);
}

.tag.active {
  animation: buttonPulse 1.8s ease-in-out infinite;
}

@keyframes buttonPulse {

  0%,
  100% {
    box-shadow: 0 4px 0 rgba(23, 32, 24, 0.12);
  }

  50% {
    box-shadow: 0 7px 0 rgba(23, 32, 24, 0.18), 0 12px 24px rgba(20, 83, 45, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn,
  .btn-dark-toggle,
  .tag,
  .see-all,
  .visit-btn,
  .copy-btn,
  .view-btn,
  .btn-white,
  .page-link,
  .social-action-btn,
  .nl-form button,
  .tag.active {
    animation: none;
    transition: none;
  }
}

/* ── LARGER READABLE TYPE SCALE ── */
body {
  font-size: 17px;
  line-height: 1.75;
}

p,
.hero-sub,
.section-sub,
.footer-desc,
.post-content,
.info-list li,
.prompt-desc,
.card-desc,
.nl-section p {
  font-size: 16px;
  line-height: 1.75;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.12;
}

.page-hero h1 {
  font-size: 42px;
  line-height: 1.16;
}

.section-title {
  font-size: 30px;
}

.cta-banner h2,
.info-content h2,
.nl-section h3 {
  font-size: 30px;
  line-height: 1.2;
}

.nav-logo,
.footer-brand-logo {
  font-size: 24px;
}

.nav-links a,
.btn,
.tag,
.see-all,
.visit-btn,
.copy-btn,
.view-btn,
.btn-white,
.page-link,
.nl-form button {
  font-size: 15px;
}

.search-bar input,
.search-bar select,
.nl-form input {
  font-size: 16px;
}

.hero-badge,
.hero-stat,
.card-cat,
.news-tag,
.blog-tag,
.card-votes,
.news-date,
.blog-meta,
.cat-count {
  font-size: 13px;
}

.card-name,
.cat-name,
.news-title,
.blog-title,
.prompt-title {
  font-size: 17px;
  line-height: 1.4;
}

.card-desc,
.prompt-preview {
  font-size: 15px;
}

.footer-col h4 {
  font-size: 14px;
}

.footer-col a {
  font-size: 15px;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  p,
  .hero-sub,
  .section-sub,
  .footer-desc,
  .post-content,
  .info-list li,
  .prompt-desc,
  .card-desc,
  .nl-section p {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .section-title,
  .cta-banner h2,
  .info-content h2,
  .nl-section h3 {
    font-size: 24px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .nav-links a,
  .btn,
  .tag,
  .see-all,
  .visit-btn,
  .copy-btn,
  .view-btn,
  .btn-white,
  .page-link,
  .nl-form button {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 29px;
  }

  .page-hero h1 {
    font-size: 27px;
  }
}

/* ── FILTER PILL SPACING ── */
.filter-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-hero .filter-tags {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .filter-tags {
    gap: 9px;
    margin-top: 18px;
  }
}

.navbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar-wrapper.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #eee;
}

.navbar-wrapper nav {
  /* position: relative; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  transition: padding 0.3s ease;
}

.navbar-wrapper.scrolled nav {
  padding: 10px 24px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {

  .nav-links,
  .nav-right .btn-outline,
  .nav-right .btn-primary {
    display: none;
  }

  .btn-hamburger {
    display: block;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 16px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .mobile-menu.show {
    display: flex;
  }

  .mobile-menu a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    padding: 6px 0;
  }

  .mobile-menu a.active {
    color: #4f46e5;
    font-weight: 600;
  }

  .mobile-menu .btn {
    display: inline-block;
    text-align: center;
  }
}

/* ── Refined AI tool cards ── */
.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 236px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 24, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--card-bg));
  box-shadow: 0 6px 0 rgba(23, 32, 24, 0.05), 0 16px 34px rgba(23, 32, 24, 0.08);
  gap: 12px;
}

.card::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent 38%);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 83, 45, 0.34);
  box-shadow: 0 8px 0 rgba(23, 32, 24, 0.08), 0 24px 42px rgba(23, 32, 24, 0.13);
}

.card-top {
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  min-height: 56px;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #f5efe0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.card-name {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.card-cat {
  margin-top: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  max-width: 100%;
}

.card-desc {
  display: -webkit-box;
  min-height: 72px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #596152;
  font-size: 15px;
  line-height: 1.6;
}

.card-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(23, 32, 24, 0.14);
}

.card-meta {
  color: #172018;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.card-ribbon {
  border-radius: 0 8px 0 8px;
}

.card-votes {
  top: 12px;
  left: 12px;
}

.dark .card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), var(--card-bg));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.dark .card-desc,
.dark .card-meta {
  color: var(--muted);
}

@media (max-width: 1199px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    min-height: 220px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Refined news and blog cards ── */
.news-grid,
.blog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.news-card,
.blog-card {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 24, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--card-bg));
  box-shadow: 0 6px 0 rgba(23, 32, 24, 0.05), 0 16px 34px rgba(23, 32, 24, 0.08);
}

.news-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 83, 45, 0.34);
  box-shadow: 0 8px 0 rgba(23, 32, 24, 0.08), 0 24px 42px rgba(23, 32, 24, 0.13);
}

.news-thumb,
.blog-img {
  height: auto;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(23, 32, 24, 0.12);
  font-size: 38px;
}

.news-thumb img,
.blog-img img {
  transition: transform 0.28s ease;
}

.news-card:hover .news-thumb img,
.blog-card:hover .blog-img img {
  transform: scale(1.04);
}

.news-body,
.blog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
  gap: 9px;
}

.news-tag,
.blog-tag {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  text-transform: none;
}

.news-title,
.blog-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text);
  font-size: 16px;
  line-height: 1.48;
}

.news-date,
.news-meta,
.blog-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 32, 24, 0.12);
  color: #596152;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.news-meta,
.blog-meta {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.dark .news-card,
.dark .blog-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), var(--card-bg));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.dark .news-date,
.dark .news-meta,
.dark .blog-meta {
  color: var(--muted);
  border-top-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1199px) {
  .news-grid,
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .news-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card,
  .blog-card {
    min-height: 270px;
  }
}

@media (max-width: 480px) {
  .news-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
