/* ============================================
   Elegir AI — style.css
   Fonts: Sora (headings) + DM Sans (body)
   Theme: Dark/Light with soft blue accent
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --accent: #4f8ef7;
  --accent-soft: rgba(79, 142, 247, 0.12);
  --accent-glow: rgba(79, 142, 247, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.22s ease;
  --transition-slow: 0.4s ease;
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #0d0f14;
  --bg-2: #13161e;
  --bg-3: #1b1f2b;
  --bg-card: #161923;
  --bg-card-hover: #1d2233;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(79,142,247,0.35);
  --text: #e8eaf2;
  --text-muted: #7a7f96;
  --text-faint: #4a4f66;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
  --nav-bg: rgba(13,15,20,0.85);
  --gradient-hero: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79,142,247,0.13) 0%, transparent 70%);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-2: #eef0f7;
  --bg-3: #e5e8f2;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f3ff;
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(79,142,247,0.4);
  --text: #0f1120;
  --text-muted: #555b7a;
  --text-faint: #9aa0be;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --nav-bg: rgba(245,246,250,0.88);
  --gradient-hero: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79,142,247,0.09) 0%, transparent 70%);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition-slow);
}

.navbar.scrolled {
  box-shadow: 0 2px 32px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links li a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }

.theme-icon {
  position: absolute;
  transition: opacity 0.2s, transform 0.2s;
}
[data-theme="dark"] .sun { opacity: 1; transform: scale(1); }
[data-theme="dark"] .moon { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .sun { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .moon { opacity: 1; transform: scale(1); }

/* Nav CTA */
.btn-nav {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.mobile-menu ul li a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Subtle grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}

/* Glow blob */
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: var(--gradient-hero);
  pointer-events: none;
  filter: blur(1px);
}

.hero-content {
  text-align: center;
  max-width: 760px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

/* ---- Search bar ---- */
.search-wrap {
  margin-bottom: 36px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-icon {
  font-size: 1.1rem;
  color: var(--text-faint);
  flex-shrink: 0;
  user-select: none;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  caret-color: var(--accent);
}

.search-bar input::placeholder { color: var(--text-faint); }

.search-btn {
  padding: 9px 22px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.search-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.suggestion-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.suggestion-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Hero stats ---- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.stat span {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
  padding: 20px 0 48px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 9px 18px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   TOOLS GRID
   ============================================ */
.tools-section {
  padding: 60px 0 80px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ---- Tool Card ---- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: default;
  animation: card-in 0.4s ease both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 0 0 1.5px var(--border-hover);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Card top row */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-free {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}

.badge-freemium {
  background: rgba(251,191,36,0.1);
  color: #f59e0b;
  border: 1px solid rgba(251,191,36,0.2);
}

.badge-paid {
  background: rgba(248,113,113,0.1);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.2);
}

/* Card info */
.card-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Card meta */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.meta-row strong {
  color: var(--text-muted);
  font-weight: 500;
}

.best-for-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(79,142,247,0.2);
  color: var(--accent);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 500;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-visit:hover { opacity: 0.85; transform: translateY(-1px); }

.card-credits {
  font-size: 0.78rem;
  color: #34d399;
  font-weight: 500;
  opacity: 0.9;
}

/* No results */
.no-results.hidden { display: none; }

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
}

.no-results-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.no-results-icon { font-size: 3rem; }
.no-results h3 { font-size: 1.3rem; color: var(--text); }
.no-results p { color: var(--text-muted); }

.btn-outline {
  margin-top: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ============================================
   BANNER
   ============================================ */
.banner-section {
  padding: 0 0 80px;
}

.banner-card {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
}

.banner-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.banner-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 440px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  padding: 60px 0 80px;
  background: var(--bg-2);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* News card */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: card-in 0.4s ease both;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  border-color: var(--border-hover);
}

.news-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--bg-3);
}

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.news-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.news-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.btn-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.btn-read:hover { gap: 8px; }

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  padding: 80px 0 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-label { margin-bottom: 16px; }

.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.25;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* About visual cards */
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: transform var(--transition), border-color var(--transition);
}

.visual-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.visual-card span {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.vc1 span { color: var(--accent); }
.vc2 span { color: #a78bfa; }
.vc3 span { color: #34d399; }
.vc4 span { color: #f59e0b; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================
   FADE-UP ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.46s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .banner-card { flex-direction: column; text-align: center; padding: 36px 28px; }
  .nav-links, .nav-actions .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions { gap: 8px; }
}

@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  
  /* Optimize search bar on mobile */
  .search-bar {
    padding: 4px 4px 4px 14px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .search-bar input {
    font-size: 0.88rem;
  }
  .search-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  /* Autocomplete dropdown positioning on mobile */
  .autocomplete-dropdown {
    top: 52px;
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  /* Make categories scrollable horizontally on mobile */
  .category-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .category-chips::-webkit-scrollbar {
    height: 4px;
  }
  .category-chips::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 2px;
  }
  .chip {
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  
  /* Modals padding adaptation */
  .modal-content {
    padding: 16px !important;
    width: 92% !important;
  }
}

@media (max-width: 400px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* ============================================
   AUTOCOMPLETE DROPDOWN SUGGESTIONS
   ============================================ */
.autocomplete-dropdown {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  z-index: 150;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.autocomplete-item .item-emoji {
  font-size: 1.2rem;
}

.autocomplete-item .item-name {
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
}

.autocomplete-item .item-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Modal and button enhancements */
.modal-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
}

.btn-more-info:hover {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* ============================================
   VIBE CODING HUB SECTION
   ============================================ */
.vibe-coding-section {
  position: relative;
  padding: 80px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.vibe-bg-glow {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.vibe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(79, 142, 247, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 40px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .vibe-badge {
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.4);
}

/* Custom spotlight cards style */
.coding-spotlight-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(27, 31, 43, 0.5) 100%);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .coding-spotlight-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(238, 240, 247, 0.6) 100%);
}

.coding-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(139, 92, 246, 0.2) 80%, rgba(79, 142, 247, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.coding-spotlight-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.12), 0 0 0 1px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.4);
}

.coding-spotlight-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, transparent 30%, rgba(139, 92, 246, 0.4) 75%, rgba(79, 142, 247, 0.6) 100%);
}
