/* ========== HERO SECTION (Visual Excellence) ========== */
.hero {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 840px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ========== GLASSMORPHIC SEARCH BAR ========== */
.search-container {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.search-bar {
  display: flex;
  background: var(--bg-secondary);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.search-bar:focus-within {
  border-color: var(--accent-solid);
  box-shadow: 0 12px 30px var(--glow);
  transform: translateY(-2px);
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
}
.search-bar input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}
.search-bar button {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.search-bar button:hover {
  transform: scale(1.05);
}

/* ========== CATEGORIES FILTER ========== */
.cats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  justify-content: center;
}
.cat {
  padding: 10px 24px;
  border-radius: 40px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.cat:hover {
  border-color: var(--accent-solid);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--glow);
}
.cat.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px var(--glow);
}

/* ========== FEATURED ARTICLE (Premium Asymmetric Grid) ========== */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 48px;
  margin-bottom: 64px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, var(--glow), transparent 60%);
  pointer-events: none;
}
.featured:hover {
  transform: translateY(-6px);
  border-color: var(--accent-solid);
  box-shadow: 0 32px 60px -12px rgba(123, 93, 246, 0.18);
}
.featured-tag {
  background: var(--accent-gradient);
  color: white;
  padding: 6px 18px;
  border-radius: 40px;
  font-size: .8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px var(--glow);
}
.featured h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.featured p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: .88rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}
.featured-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured-meta i {
  color: var(--accent-solid);
}

/* Interactive CSS illustration showing wishing page on phone */
.featured-visual {
  background: linear-gradient(135deg, rgba(123, 93, 246, 0.06) 0%, rgba(255, 122, 47, 0.06) 100%);
  border: 1.5px dashed var(--card-border);
  border-radius: 24px;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.phone-mockup {
  width: 130px;
  height: 220px;
  background: var(--bg-secondary);
  border: 6px solid var(--text-primary);
  border-radius: 24px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  z-index: 2;
  animation: floatPhone 4s ease-in-out infinite alternate;
}
.phone-notch {
  width: 50px;
  height: 10px;
  background: var(--text-primary);
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 0;
}
.phone-card {
  width: 100%;
  height: 90px;
  background: var(--accent-gradient);
  border-radius: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 8px 16px rgba(123, 93, 246, 0.3);
}
.phone-text {
  width: 80%;
  height: 6px;
  background: var(--text-secondary);
  opacity: 0.3;
  border-radius: 4px;
  margin-top: 16px;
}
.phone-text-short {
  width: 50%;
  height: 6px;
  background: var(--text-secondary);
  opacity: 0.3;
  border-radius: 4px;
  margin-top: 8px;
}
.floating-star {
  position: absolute;
  font-size: 2.2rem;
  z-index: 1;
  filter: drop-shadow(0 4px 10px var(--glow));
  animation: floatStar 3s ease-in-out infinite alternate;
}
.star-1 { top: 15%; left: 15%; animation-delay: -0.5s; }
.star-2 { bottom: 20%; right: 15%; animation-delay: -1.5s; }

@keyframes floatPhone {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(4deg); }
}
@keyframes floatStar {
  0% { transform: scale(0.9) rotate(0deg) translateY(0); }
  100% { transform: scale(1.1) rotate(15deg) translateY(-8px); }
}

/* ========== OCCASION TRUST STATS BANNER ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-solid);
  box-shadow: var(--shadow-lg);
}
.stat-icon {
  font-size: 1.8rem;
  background: rgba(123, 93, 246, 0.08);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent-solid);
}
.stat-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ========== TRENDING WISH TEMPLATES PANEL ========== */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.template-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.template-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-solid);
  box-shadow: var(--shadow-lg);
}
.template-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(123, 93, 246, 0.08);
  color: var(--accent-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.template-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.template-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  flex: 1;
}
.template-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-solid);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.template-card:hover .template-action i {
  transform: translateX(4px);
}
.template-action i {
  transition: transform 0.2s;
}

/* ========== ARTICLES GRID (Premium Glass Cards) ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}
.article-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color, var(--accent-solid));
  box-shadow: var(--card-glow, 0 24px 48px -12px rgba(123, 93, 246, 0.18));
}

/* Interactive Card Header Visuals */
.card-visual-header {
  height: 150px;
  position: relative;
  background: var(--accent-color, var(--accent-solid));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}
.card-visual-pattern {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, #fff 1.5px, transparent 0);
  background-size: 16px 16px;
}
.card-emoji-glow {
  font-size: 3rem;
  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.article-card:hover .card-emoji-glow {
  transform: scale(1.22) rotate(-8deg);
}

.card-tag-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 750;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid rgba(255,255,255,0.12);
}

.card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.85;
  margin-bottom: 16px;
}
.card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1.5px solid var(--card-border);
  font-size: .85rem;
  color: var(--text-secondary);
}
.card-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.read-more {
  color: var(--accent-solid);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.article-card:hover .read-more {
  gap: 10px;
  color: var(--accent-color, var(--accent-solid));
}

/* Card Accent Overrides based on categories */
.article-card[data-cat="friendship"] {
  --accent-color: var(--friendship-color);
  --card-glow: 0 24px 48px -12px rgba(13, 148, 136, 0.2);
}
.article-card[data-cat="birthday"] {
  --accent-color: var(--birthday-color);
  --card-glow: 0 24px 48px -12px rgba(219, 39, 119, 0.2);
}
.article-card[data-cat="anniversary"] {
  --accent-color: var(--anniversary-color);
  --card-glow: 0 24px 48px -12px rgba(79, 70, 229, 0.2);
}
.article-card[data-cat="love"] {
  --accent-color: var(--love-color);
  --card-glow: 0 24px 48px -12px rgba(225, 29, 72, 0.2);
}
.article-card[data-cat="festival"] {
  --accent-color: var(--festival-color);
  --card-glow: 0 24px 48px -12px rgba(217, 119, 6, 0.2);
}
.article-card[data-cat="tips"] {
  --accent-color: var(--tips-color);
  --card-glow: 0 24px 48px -12px rgba(124, 58, 237, 0.2);
}

/* Visual Background Color logic for visual headers */
.article-card[data-cat="friendship"] .card-visual-header { background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%); }
.article-card[data-cat="birthday"] .card-visual-header { background: linear-gradient(135deg, #db2777 0%, #f472b6 100%); }
.article-card[data-cat="anniversary"] .card-visual-header { background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%); }
.article-card[data-cat="love"] .card-visual-header { background: linear-gradient(135deg, #e11d48 0%, #fda4af 100%); }
.article-card[data-cat="festival"] .card-visual-header { background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%); }
.article-card[data-cat="tips"] .card-visual-header { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }

/* ========== ZERO SEARCH RESULTS CONTAINER ========== */
.no-results {
  text-align: center;
  padding: 64px 32px;
  background: var(--bg-secondary);
  border: 1.5px dashed var(--card-border);
  border-radius: 28px;
  margin-bottom: 80px;
  display: none;
}
.no-results-icon {
  font-size: 3.5rem;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-bottom: 16px;
}
.no-results h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.no-results p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.no-results button {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--glow);
}

/* ========== NEWSLETTER SECTION (Mesh Gradient Banner) ========== */
.newsletter-strip {
  background: linear-gradient(135deg, #7b5df6 0%, #ff7a2f 100%);
  border-radius: 32px;
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.newsletter-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.15), transparent 40%);
}
.newsletter-strip h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.newsletter-strip p {
  opacity: .9;
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  color: #fff;
  transition: all 0.3s;
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}
.newsletter-form button {
  background: #fff;
  color: #7b5df6;
  border: none;
  padding: 16px 32px;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  color: #ff7a2f;
}

/* ========== CTA STRIP (Conversion Funnel) ========== */
.cta-strip {
  background: var(--bg-secondary);
  border: 1.5px solid var(--card-border);
  border-radius: 32px;
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cta-strip h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.cta-strip p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-strip a {
  background: var(--accent-gradient);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px var(--glow);
  transition: all 0.3s;
}
.cta-strip a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px var(--glow);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .featured {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .featured-visual {
    min-height: 240px;
    grid-row: 1;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 48px 16px 32px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .newsletter-strip, .cta-strip {
    padding: 36px 24px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form button {
    justify-content: center;
  }
}
