/* ============================================================
   Snipz AI — Main Stylesheet
   Dark mode default · Inter font · Glassmorphism cards
   ============================================================ */

/* ── Google Font ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Dark Mode (Black Mode Brutalism) - Default */
  --bg-primary:     #111111;
  --bg-secondary:   #1a1a1a;
  --bg-card:        #111111;
  --bg-card-hover:  #1f2937;
  --border-color:   #ffffff;
  --border-hover:   #ffffff;

  --text-primary:   #ffffff;
  --text-secondary: #f3f4f6;
  --text-muted:     #9ca3af;

  --accent:         #c4f053;
  --accent-light:   #d4f57a;
  --accent-dark:    #b0dc3c;
  --accent-purple:  #ffffff;
  --gradient:       var(--accent);
  --gradient-hover: var(--accent-light);

  --success:  #22c55e;
  --warning:  #eab308;
  --error:    #ef4444;
  --info:     #06b6d4;

  --badge-free:     #111;
  --badge-paid:     #111;
  --badge-freemium: #111;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  2px 2px 0px #ffffff;
  --shadow-md:  4px 4px 0px #ffffff;
  --shadow-lg:  6px 6px 0px #ffffff;
  --glow:       none;

  /* Dynamic Card Borders */
  --featured-border: var(--accent);
  --sponsored-border: var(--warning);

  --transition: 0.15s ease;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h:   70px;
  --container:  1280px;
}

/* Light Mode Brutalism */
[data-theme="light"] {
  --bg-primary:     #ffffff;
  --bg-secondary:   #f8f9fa;
  --bg-card:        #ffffff;
  --bg-card-hover:  #ffffff;
  --border-color:   #111111;
  --border-hover:   #111111;
  --text-primary:   #111111;
  --text-secondary: #333333;
  --text-muted:     #666666;
  --shadow-sm:      2px 2px 0px #111;
  --shadow-md:      4px 4px 0px #111;
  --shadow-lg:      6px 6px 0px #111;

  /* Dynamic Card Borders */
  --featured-border: var(--border-color);
  --sponsored-border: var(--border-color);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font);
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography ──────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

.gradient-text {
  background: var(--accent);
  color: #111 !important;
  -webkit-text-fill-color: #111;
  padding: 2px 14px;
  border: 3px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: inline-block;
  box-shadow: 4px 4px 0px var(--border-color);
  line-height: 1.2;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111 !important;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 4px 4px 0px var(--border-color);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
}
.btn-primary.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-primary.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 4px 4px 0px var(--border-color);
}
.btn-outline:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.btn-outline.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-light);
  border-color: var(--border-hover);
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1.5px solid var(--border-color);
  color: #111 !important;
}
.badge-free     { background: var(--accent); }
.badge-paid     { background: #fda4af; }
.badge-freemium { background: #fde047; }
.badge-platform { background: #67e8f9; }
.badge-sponsored { background: var(--border-color); color: var(--bg-primary) !important; }
.badge-category {
  background: var(--bg-secondary);
  color: var(--text-primary) !important;
}
.badge-new { background: var(--accent); }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
  height: var(--header-h);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--border-color);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bookmark-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Search Bar */
.header-search {
  padding: 10px 0;
  border-top: 2px solid var(--border-color);
}

.header-search[hidden] {
  display: none;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input-wrap:focus-within { transform: translate(-1px, -1px); box-shadow: var(--shadow-md); }

.search-ico {
  color: var(--text-muted);
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 0;
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
}

/* ── Mobile Nav ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 0;
}

.mobile-nav .nav-link:hover {
  background: var(--bg-card);
}

.mobile-nav-section {
  padding: 10px 20px 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.nav-link-highlight {
  color: var(--accent-light) !important;
}

/* ── Bookmarks Sidebar ────────────────────────────────────────── */
.bookmarks-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bookmarks-sidebar.open {
  right: 0;
  box-shadow: var(--shadow-lg);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-size: 1rem;
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1999;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111 !important;
  border: 2px solid var(--border-color);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-search {
  max-width: 580px;
  margin: 0 auto;
}

.hero-search .search-input-wrap {
  padding: 8px 8px 8px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px 0px var(--border-color);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat .lbl {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Section Header ──────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  display: inline-block;
  background: var(--accent);
  color: #111 !important;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px 0px var(--border-color);
}

.section-title .dot {
  display: none;
}

/* ── Tool Card Grid ──────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.tool-card.featured {
  border-color: var(--featured-border);
}

.tool-card.sponsored {
  border-color: var(--sponsored-border);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--bg-secondary);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  padding: 4px;
}

.tool-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  font-weight: 800;
  color: white;
}

.card-title-area {
  flex: 1;
  min-width: 0;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.tool-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-name a {
  color: var(--text-primary);
  text-decoration: none;
}

.tool-name a:hover {
  color: var(--accent-light);
}

.tool-description {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-stat .val {
  color: var(--text-secondary);
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-like {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  font-weight: 700;
  box-shadow: 2px 2px 0px var(--border-color);
}

.btn-like:hover,
.btn-like.liked {
  background: #fda4af;
  color: var(--border-color);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
}

.btn-bookmark {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-bookmark:hover,
.btn-bookmark.bookmarked {
  color: var(--accent-light);
}

/* ── Stars ───────────────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  font-size: 0.85rem;
  line-height: 1;
}

.star-full {
  color: #f59e0b;
}

.star-half {
  color: #f59e0b;
  opacity: .6;
}

.star-empty {
  color: var(--text-muted);
}

.stars-interactive .star {
  cursor: pointer;
  transition: transform .1s;
  font-size: 1.4rem;
}

.stars-interactive .star:hover {
  transform: scale(1.2);
}

/* ── Category Cards ──────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  display: block;
}

.category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}

.cat-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cat-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(99, 102, 241, .1);
  border-color: var(--accent);
  color: var(--accent-light);
}

.filter-spacer {
  flex: 1;
}

/* ── Tool Detail Page ────────────────────────────────────────── */
.tool-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.breadcrumb .sep {
  color: var(--border-hover);
}

.tool-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.tool-hero-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tool-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px;
  flex-shrink: 0;
}

.tool-hero-logo-fallback {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.tool-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.tool-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.tool-rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tool-cta-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 240px;
}

.affiliate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #111 !important;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  width: 100%;
  box-shadow: 4px 4px 0px var(--border-color);
}

.affiliate-btn:hover {
  background: var(--accent-light);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
  color: #111 !important;
}

.tool-actions-row {
  display: flex;
  gap: 10px;
}

/* Tool Content Sections */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.tool-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.tool-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-section h2 .section-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 2px 2px 0px var(--border-color);
}

.tool-section p,
.tool-section li {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

.tool-section ul {
  padding-left: 20px;
}

.tool-section li {
  margin-bottom: 6px;
}

/* Pros & Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pros-list li::marker {
  color: var(--success);
}

.cons-list li::marker {
  color: var(--error);
}

.pro-item,
.con-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pro-icon {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.con-icon {
  color: var(--error);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Steps */
.steps-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.steps-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 2px 2px 0px var(--border-color);
}

/* YouTube Embed */
.youtube-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Rating Widget ────────────────────────────────────────────── */
.rating-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rating-big-num {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.rating-form h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.rating-name-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--transition);
}

.rating-name-input:focus {
  border-color: var(--accent);
}

.rating-text-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.rating-text-input:focus {
  border-color: var(--accent);
}

/* ── Reviews List ────────────────────────────────────────────── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}

/* ── Alternatives ────────────────────────────────────────────── */
.alternatives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.alt-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-decoration: none;
  transition: all var(--transition);
}

.alt-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.alt-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg-primary);
}

.alt-info .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.alt-info .rating {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Tags ─────────────────────────────────────────────────────── */
.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 2px 2px 0px var(--border-color);
}

.tag:hover {
  background: var(--accent);
  color: #111;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
}

/* ── Submit Form ─────────────────────────────────────────────── */
.submit-page {
  padding: 60px 0 80px;
}

.submit-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.form-label .required {
  color: var(--error);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 5px;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  text-align: center;
  margin-top: 48px;
}

.pagination ul {
  list-style: none;
  display: inline-flex;
  gap: 6px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  padding: 0 10px;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.page-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ── Flash Message ───────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 20px;
  z-index: 3000;
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 360px;
  animation: slideInRight .3s ease;
  box-shadow: var(--shadow-md);
}

.flash-success {
  background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #10b981;
}

.flash-error {
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #ef4444;
}

.flash-warning {
  background: rgba(245, 158, 11, .15);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #f59e0b;
}

.flash-info {
  background: rgba(6, 182, 212, .15);
  border: 1px solid rgba(6, 182, 212, .3);
  color: #06b6d4;
}

.flash-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: inherit;
  margin-left: auto;
  opacity: .7;
}

.flash-close:hover {
  opacity: 1;
}

/* ── Maintenance ─────────────────────────────────────────────── */
.maintenance {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.maintenance-inner {
  text-align: center;
}

.maintenance-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.maintenance h1 {
  margin-bottom: 12px;
}

.maintenance p {
  color: var(--text-secondary);
}

/* ── Page Sections (Home) ────────────────────────────────────── */
.section {
  padding: 60px 0;
}

.section:first-of-type {
  padding-top: 20px;
}

.section-sponsored {
  padding: 24px 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

/* Use-Case Section */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  transition: all .25s;
}

.use-case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.use-case-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.use-case-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.use-case-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, .0);
  }
}

.animate-in {
  animation: fadeIn .4s ease both;
}

.animate-in-delay-1 {
  animation-delay: .1s;
}

.animate-in-delay-2 {
  animation-delay: .2s;
}

.animate-in-delay-3 {
  animation-delay: .3s;
}

/* ── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ── Sidebar Panel (Tool / Category) ─────────────────────────── */
.sticky-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.social-placeholder {
  cursor: default;
  opacity: .4;
}

.footer-col {}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--success);
}

.text-error {
  color: var(--error);
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}


.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-cta-panel {
    min-width: auto;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .tool-hero {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .alternatives-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .submit-card {
    padding: 28px 20px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-hero-main {
    flex-direction: column;
  }

  .mobile-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}