/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #f9fafb;
  --bg-secondary:  #f3f4f6;
  --bg-card:       #ffffff;
  --bg-card-hover: #fafafa;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --accent-light:  #fef3c7;
  --accent-glow:   rgba(245,158,11,0.12);
  --text-primary:  #111827;
  --text-secondary:#4b5563;
  --text-muted:    #9ca3af;
  --border:        #e5e7eb;
  --border-hover:  #d1d5db;
  --success:       #16a34a;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover:  0 12px 28px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ===== AD BANNER ===== */
.ad-leaderboard {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px;
  text-align: center;
}

.ad-placeholder {
  background: #f3f4f6;
  border: 1.5px dashed #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ad-728x90 { width: 728px; height: 90px; max-width: 100%; margin: 0 auto; }
.ad-300x250 { width: 300px; height: 250px; }
.ad-970x250 { width: 970px; height: 250px; max-width: 100%; margin: 0 auto; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo span { color: var(--accent-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-links a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nav-links a.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-outline {
  padding: 7px 16px;
  border: 1.5px solid var(--border-hover);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s;
}

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

.btn-primary {
  padding: 8px 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

/* ===== HERO ===== */
.hero {
  padding: 56px 24px 44px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--accent-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.search-box {
  display: flex;
  max-width: 580px;
  margin: 0 auto 32px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 13px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

.search-box button {
  background: var(--accent);
  border: none;
  padding: 0 22px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.search-box button:hover { background: var(--accent-dark); color: #fff; }

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

.stat-item { text-align: center; }

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== CATEGORY GROUPS ===== */
.category-group-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-group-bar::-webkit-scrollbar { display: none; }

.category-group-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

.group-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2.5px solid transparent;
  transition: all 0.18s;
  white-space: nowrap;
}

.group-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
.group-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 600; }

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ===== CATEGORY FILTER PILLS ===== */
.category-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-pills {
  display: flex;
  gap: 6px;
  width: max-content;
}

.pill {
  padding: 7px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pill:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-light); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

.pill-count {
  font-size: 0.7rem;
  opacity: 0.75;
  background: rgba(0,0,0,0.07);
  padding: 1px 6px;
  border-radius: 10px;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-left { display: flex; align-items: center; gap: 10px; }

.results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sort-select {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  font-family: var(--font);
}

.sort-select:focus { border-color: var(--accent); }

/* ===== SIDEBAR LAYOUT ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.sticky-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.popular-item { display: flex; gap: 10px; align-items: center; }

.popular-rank {
  width: 22px;
  height: 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.popular-rank.top { background: var(--accent); border-color: var(--accent); color: #000; }

.popular-info { flex: 1; min-width: 0; }
.popular-name { font-size: 0.83rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popular-copies { font-size: 0.72rem; color: var(--text-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
}

.tag:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-light); }

/* ===== PROMPT GRID ===== */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.ad-in-feed {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== PROMPT CARD ===== */
.prompt-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.22s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

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

.card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.prompt-card:hover .card-image-wrap img { transform: scale(1.05); }

.card-model-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-dark);
  border: 1px solid rgba(245,158,11,0.3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card-category-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
}

.card-premium-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #000;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
}

.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.22s;
}

.prompt-card:hover .card-overlay { opacity: 1; }

.overlay-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.overlay-tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.67rem;
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-prompt-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  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;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.card-meta { display: flex; align-items: center; gap: 10px; }

.meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}

.copy-btn:hover { background: var(--accent-dark); color: #fff; }
.copy-btn.copied { background: var(--success); color: #fff; }
.copy-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ===== LOAD MORE ===== */
.load-more-wrap { text-align: center; margin-top: 36px; }

.btn-load-more {
  padding: 11px 36px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-hover);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-load-more:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-light); }

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
}

.features-inner { max-width: 1380px; margin: 0 auto; }

.features-title { text-align: center; font-size: 1.65rem; font-weight: 800; margin-bottom: 8px; }
.features-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }

.feature-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
}

.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}

.feature-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.feature-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { max-width: 760px; margin: 56px auto; padding: 0 24px; }
.faq-title { font-size: 1.65rem; font-weight: 800; text-align: center; margin-bottom: 36px; }

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 16px 20px;
  text-align: left;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.18s;
  font-family: var(--font);
}

.faq-question:hover { background: var(--bg-secondary); }
.faq-icon { transition: transform 0.3s; flex-shrink: 0; color: var(--accent-dark); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: var(--bg-secondary); }
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p { padding: 14px 20px 18px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-primary);
  color: #e5e7eb;
  padding: 52px 24px 28px;
}

.footer-inner { max-width: 1380px; margin: 0 auto; }

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

.footer-brand .logo { margin-bottom: 12px; color: #fff; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand .logo-icon { background: var(--accent); }

.footer-brand-desc { font-size: 0.83rem; color: #9ca3af; line-height: 1.7; margin-bottom: 18px; }

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

.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: all 0.18s;
  color: #9ca3af;
}

.social-link:hover { background: var(--accent); border-color: var(--accent); color: #000; }

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.83rem; color: #9ca3af; transition: color 0.18s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.footer-copy { font-size: 0.8rem; color: #6b7280; }
.footer-copy a { color: var(--accent); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 0.8rem; color: #6b7280; }
.footer-legal a:hover { color: #e5e7eb; }

/* ===== AD STRIP ===== */
.ad-strip { margin: 44px 0; text-align: center; }
.section-block { margin-bottom: 52px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--success);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 999;
  transition: transform 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 200; }
.mobile-nav.open { display: flex; }

.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }

.mobile-nav-panel {
  position: relative; z-index: 1;
  background: #fff;
  width: 280px;
  height: 100%;
  padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-close { background: none; border: none; color: var(--text-secondary); font-size: 1.4rem; cursor: pointer; padding: 4px; }

.mobile-nav-link {
  display: block; padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.18s;
}

.mobile-nav-link:hover { background: var(--bg-secondary); color: var(--text-primary); }
.mobile-nav-link.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }

/* ===== MODAL ===== */
.modal-backdrop { display: none !important; }
.modal-backdrop.open { display: flex !important; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }

.blog-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.22s;
  box-shadow: var(--shadow);
}

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

.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body { padding: 18px; }
.blog-card-cat { font-size: 0.72rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.blog-card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--text-primary); }
.blog-card-excerpt { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-outline { display: none; }
  .hero { padding: 40px 20px 32px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 1.35rem; }
  .main-content { padding: 20px 16px 60px; }
  .prompt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .sticky-sidebar { grid-template-columns: 1fr; }
  .category-group-inner { padding: 0 16px; }
  .ad-728x90 { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; }
  .prompt-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px; }
  .copy-btn { padding: 6px 10px; font-size: 0.72rem; }
}

/* ============================================
   MEGA MENU
   ============================================ */
.has-mega { position: relative; }
.mega-trigger { display: flex; align-items: center; gap: 3px; cursor: pointer; }
.mega-menu {
  position: absolute; top: calc(100% + 14px); left: 0;
  transform: translateY(-8px);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px 8px;
  display: grid; grid-template-columns: repeat(5, 1fr); min-width: 840px;
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 500;
}
.mega-menu::before {
  content: ''; position: absolute; top: -6px; left: 60px; transform: rotate(45deg);
  width: 12px; height: 12px; background: #fff; border-left: 1px solid #e5e7eb; border-top: 1px solid #e5e7eb;
}
.has-mega:hover .mega-menu {
  opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0);
}
.mega-col { padding: 0 16px; border-right: 1px solid #f3f4f6; }
.mega-col:last-child { border-right: none; }
.mega-group-title {
  font-size: .69rem; font-weight: 800; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px;
}
.mega-link {
  display: block; padding: 5px 0; font-size: .83rem;
  color: #374151; text-decoration: none; transition: color .15s; white-space: nowrap;
}
.mega-link:hover { color: #d97706; }
.mega-see-all { color: #f59e0b !important; font-weight: 600; font-size: .79rem; margin-top: 8px; }
.mega-see-all:hover { color: #d97706 !important; text-decoration: underline; }

/* ============================================
   MOBILE NAV ENHANCEMENTS
   ============================================ */
.mobile-nav-group-label {
  padding: 10px 20px 3px; font-size: .68rem; font-weight: 800;
  color: #9ca3af; text-transform: uppercase; letter-spacing: .09em;
}
.mobile-nav-sub { padding: 7px 28px !important; font-size: .83rem !important; }

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: #fff; border-top: 1px solid #e5e7eb;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 4px; text-decoration: none; color: #9ca3af;
  font-size: .62rem; font-weight: 500; background: none; border: none; cursor: pointer;
  transition: color .15s; font-family: inherit; line-height: 1;
}
.bottom-nav-item.active, .bottom-nav-item:hover { color: #f59e0b; }
.bottom-nav-center { position: relative; }
.bottom-nav-center span:first-child {
  background: #f59e0b; border-radius: 50%; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -14px; box-shadow: 0 4px 12px rgba(245,158,11,.4);
}

/* ============================================
   MOBILE APP LAYOUT (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Bottom nav visible */
  .mobile-bottom-nav { display: grid; }
  /* Space for bottom nav */
  body { padding-bottom: 72px; }
  /* Hero tightened */
  .hero { padding: 20px 16px 28px; }
  .hero h1 { font-size: clamp(1.55rem, 7.5vw, 2.2rem); }
  .hero-desc { font-size: .9rem; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: .7rem; }
  /* 2-col prompt grid */
  .prompt-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px; }
  /* Compact cards on mobile */
  .card-title { font-size: .8rem; line-height: 1.3; }
  .card-prompt-preview { display: none; }
  .card-body { padding: 9px 10px; }
  .card-footer { margin-top: 6px; }
  .copy-btn { padding: 7px 10px; font-size: .75rem; min-height: 36px; }
  .meta-item { font-size: .72rem; }
  /* Prompt modal full-screen bottom sheet */
  .modal-backdrop > div {
    border-radius: 20px 20px 0 0 !important; position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    max-width: 100% !important; max-height: 88vh !important;
  }
  #modalContent > div { grid-template-columns: 1fr !important; }
  #modalContent > div > div:first-child img { display: none; }
  /* Hide desktop sidebar */
  .sticky-sidebar { display: none !important; }
  .content-with-sidebar { grid-template-columns: 1fr !important; }
  /* Category bars */
  .category-group-bar { padding: 0; overflow-x: auto; scrollbar-width: none; }
  .category-group-bar::-webkit-scrollbar { display: none; }
  .category-group-inner { padding: 0 12px; gap: 6px; }
  .group-tab { padding: 7px 13px; font-size: .78rem; white-space: nowrap; flex-shrink: 0; }
  .category-scroll { padding: 8px 12px; }
  .pill { padding: 6px 12px; font-size: .78rem; white-space: nowrap; }
  /* Filters bar */
  .filters-bar { padding: 10px 0; }
  /* Hide leaderboard ad */
  .ad-leaderboard, .ad-strip { display: none; }
  /* Mega menu hidden on mobile */
  .mega-menu { display: none !important; }
  /* Main content */
  .main-content { padding: 12px 12px 60px; }
  /* Features grid */
  .features-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .feature-card { padding: 18px 14px; }
  .feature-icon { font-size: 1.5rem; }
  .feature-name { font-size: .88rem; }
  .feature-desc { font-size: .78rem; }
  /* Sign In button show on mobile (was hidden) */
  .btn-outline { display: inline-flex !important; padding: 7px 14px; font-size: .82rem; }
}
