/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fef9f5;
  --fg: #2d1f23;
  --card: #ffffff;
  --primary: #e84471;
  --primary-fg: #ffffff;
  --primary-glow: #ff6b8a;
  --secondary: #ff6600;
  --muted: #f5ede7;
  --muted-fg: #7a6a6e;
  --accent: #fde8ee;
  --accent-fg: #e84471;
  --border: #ece0d6;
  --shadow-elegant: 0 10px 40px -10px rgba(232,68,113,0.2);
  --shadow-card: 0 4px 20px -4px rgba(45,31,35,0.1);
  --radius: 0.75rem;
  --gradient-hero: linear-gradient(135deg, #e84471 0%, #ff6600 100%);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ===== Header ===== */
.header { position: relative; z-index: 50; }
.header-gradient { background: var(--gradient-hero); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.header-logo { height: 2rem; width: auto; }
@media (min-width: 768px) { .header-logo { height: 2.5rem; } }

.header-search { display: none; flex: 1; max-width: 32rem; margin: 0 2.5rem; position: relative; }
@media (min-width: 768px) { .header-search { display: flex; } }
.header-search input {
  width: 100%; padding: 0.75rem 1.25rem 0.75rem 2.75rem;
  border-radius: 9999px; border: none; font-size: 0.875rem;
  background: #fff; color: var(--fg); outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-search input::placeholder { color: var(--muted-fg); }
.header-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted-fg); }

.header-social { display: none; align-items: center; gap: 1rem; }
@media (min-width: 1024px) { .header-social { display: flex; } }
.header-social a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.header-social a:hover { color: #fff; }
.header-social svg { width: 1rem; height: 1rem; }

.mobile-toggle { display: block; padding: 0.5rem; background: rgba(255,255,255,0.1); border-radius: 0.75rem; color: #fff; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

/* Desktop nav */
.header-nav { display: none; align-items: center; gap: 0.125rem; padding-bottom: 0.75rem; margin-top: -0.25rem; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav > a, .nav-dropdown > button {
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.9); background: none; border-radius: 0.5rem;
  transition: all 0.2s; display: flex; align-items: center; gap: 0.375rem;
}
.header-nav > a:hover, .nav-dropdown > button:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  width: 14rem; background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: var(--shadow-elegant);
  padding: 0.5rem 0; margin-top: 0.25rem; z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.75rem 1.25rem; font-size: 0.875rem;
  color: var(--fg); transition: all 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--accent); color: var(--primary); }
.nav-dropdown .chevron { width: 0.875rem; height: 0.875rem; transition: transform 0.2s; }
.nav-dropdown:hover .chevron { transform: rotate(180deg); }

/* Mobile search bar */
.mobile-search { display: block; padding: 0.75rem 1rem; background: var(--card); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .mobile-search { display: none; } }
.mobile-search input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 9999px; border: 1px solid var(--border);
  font-size: 0.875rem; background: var(--muted); outline: none;
}
.mobile-search .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted-fg); }

/* Mobile menu */
.mobile-menu { display: none; background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-elegant); padding: 1.25rem 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.625rem 1rem; font-size: 0.875rem; border-radius: 0.75rem; color: var(--fg); transition: all 0.15s; }
.mobile-menu a:hover { background: var(--accent); color: var(--primary); }
.mobile-menu .menu-label { padding: 0.75rem 1rem 0.25rem; font-size: 0.75rem; font-weight: 700; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Sections ===== */
section { padding: 2.5rem 0 3.5rem; }
@media (min-width: 768px) { section { padding: 3.5rem 0 5rem; } }

.section-title {
  font-size: 1.5rem; font-weight: 700; color: var(--fg);
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; margin-bottom: 2.5rem; } }
.section-title-center { text-align: center; }
.section-subtitle { text-align: center; color: var(--muted-fg); margin-bottom: 2.5rem; max-width: 36rem; margin-left: auto; margin-right: auto; font-size: 1rem; }
@media (min-width: 768px) { .section-subtitle { font-size: 1.125rem; margin-bottom: 3.5rem; } }

.section-divider { border-top: 1px solid var(--border); }

/* ===== Grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .grid-3 { gap: 2rem; } }

.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .grid-4 { gap: 2rem; } }

/* ===== Greeting Card ===== */
.greeting-card {
  display: block; border-radius: 1rem; overflow: hidden;
  background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease; transform: translateY(0);
}
.greeting-card:hover { box-shadow: var(--shadow-elegant); transform: translateY(-4px); }
.greeting-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.greeting-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.greeting-card:hover .greeting-card-img img { transform: scale(1.05); }
.greeting-card-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(45,31,35,0.7); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.625rem; border-radius: 9999px;
  display: flex; align-items: center; gap: 0.25rem;
}
.greeting-card-badge svg { width: 0.75rem; height: 0.75rem; }
.greeting-card-body { padding: 1rem 1rem 1.25rem; }
@media (min-width: 768px) { .greeting-card-body { padding: 1.25rem; } }
.greeting-card-body h3 {
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600;
  color: var(--fg); line-height: 1.4; transition: color 0.2s;
}
@media (min-width: 768px) { .greeting-card-body h3 { font-size: 1.05rem; } }
.greeting-card:hover .greeting-card-body h3 { color: var(--primary); }

/* ===== Category Section ===== */
.category-section { padding: 2.5rem 0 3.5rem; }
@media (min-width: 768px) { .category-section { padding: 3.5rem 0; } }
.category-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .category-header { margin-bottom: 2rem; } }
.category-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.category-icon svg { width: 1.25rem; height: 1.25rem; }
.category-icon.birthday { background: rgba(232,68,113,0.1); color: var(--primary); }
.category-icon.wishes { background: rgba(59,130,246,0.1); color: #3b82f6; }
.category-icon.occasions { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.category-header h2 { font-size: 1.25rem; font-weight: 700; }
@media (min-width: 768px) { .category-header h2 { font-size: 1.5rem; } }

.category-tags { display: flex; flex-wrap: wrap; gap: 0.625rem; }
@media (min-width: 768px) { .category-tags { gap: 0.75rem; } }
.category-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: 0.75rem;
  background: var(--card); color: var(--fg);
  transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (min-width: 768px) { .category-tag { padding: 0.75rem 1.25rem; font-size: 1rem; } }
.category-tag .arrow { width: 0.875rem; height: 0.875rem; opacity: 0; margin-left: -0.5rem; transition: all 0.2s; }
.category-tag:hover .arrow { opacity: 1; margin-left: 0; }

.category-tag.birthday:hover { background: var(--primary); color: #fff; border-color: transparent; }
.category-tag.wishes:hover { background: #3b82f6; color: #fff; border-color: transparent; }
.category-tag.occasions:hover { background: #8b5cf6; color: #fff; border-color: transparent; }

/* ===== How It Works ===== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.step { text-align: center; }
.step-icon-wrap { position: relative; margin-bottom: 1.5rem; display: inline-block; }
.step-icon {
  width: 5rem; height: 5rem; border-radius: 1rem;
  background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.step:hover .step-icon { background: var(--primary); color: #fff; }
.step-icon svg { width: 1.75rem; height: 1.75rem; }
.step-num {
  position: absolute; top: -0.5rem; right: -0.5rem;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(232,68,113,0.3);
}
.step h3 { font-family: 'Inter', sans-serif; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--muted-fg); line-height: 1.6; }

/* ===== Testimonials ===== */
.testimonials-bg { background: rgba(245,237,231,0.3); border-radius: 1.5rem; margin: 0 -1rem; padding: 3.5rem 1rem; }
@media (min-width: 768px) { .testimonials-bg { margin: 0 -2rem; padding: 5rem 2rem; } }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.testimonial-card {
  background: var(--card); border-radius: 1rem; padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative;
  transition: box-shadow 0.3s;
}
@media (min-width: 768px) { .testimonial-card { padding: 2rem; } }
.testimonial-card:hover { box-shadow: var(--shadow-elegant); }
.testimonial-quote { position: absolute; top: 1.25rem; right: 1.25rem; width: 2rem; height: 2rem; color: rgba(232,68,113,0.1); }
.testimonial-stars { display: flex; gap: 0.125rem; margin-bottom: 1rem; }
.testimonial-stars svg { width: 1rem; height: 1rem; }
.star-filled { color: var(--secondary); fill: var(--secondary); }
.star-empty { color: var(--border); }
.testimonial-text { color: var(--fg); line-height: 1.7; margin-bottom: 1.25rem; font-size: 1rem; }
.testimonial-name { font-size: 0.875rem; font-weight: 600; color: var(--muted-fg); }

/* ===== FAQ ===== */
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.25rem; font-size: 1rem; font-weight: 600;
  color: var(--fg); background: none; text-align: left; transition: color 0.15s;
  font-family: 'Inter', sans-serif; line-height: 1.4;
}
@media (min-width: 768px) { .faq-question { padding: 1.25rem 1.5rem; font-size: 1.125rem; } }
.faq-question:hover { color: var(--primary); }
.faq-question .faq-chevron { width: 1.25rem; height: 1.25rem; flex-shrink: 0; transition: transform 0.3s; color: var(--muted-fg); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem; font-size: 1rem; color: var(--muted-fg); line-height: 1.7;
}
@media (min-width: 768px) { .faq-answer { padding: 0 1.5rem; } }
.faq-item.open .faq-answer { max-height: 20rem; padding-bottom: 1.25rem; }

/* ===== Footer ===== */
.footer { background: var(--fg); color: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer p.desc { color: rgba(254,249,245,0.6); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: rgba(254,249,245,0.1); display: flex; align-items: center; justify-content: center;
  color: rgba(254,249,245,0.7); transition: all 0.3s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: rgba(254,249,245,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(254,249,245,0.6); margin-bottom: 1rem; }
.footer-contact a:hover { color: var(--primary); }
.footer-contact svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.footer-newsletter { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-newsletter input {
  flex: 1; padding: 0.625rem 1rem; border-radius: 0.75rem;
  background: rgba(254,249,245,0.1); border: 1px solid rgba(254,249,245,0.15);
  font-size: 0.875rem; color: var(--bg); outline: none; transition: border-color 0.2s;
}
.footer-newsletter input::placeholder { color: rgba(254,249,245,0.35); }
.footer-newsletter input:focus { border-color: var(--primary); }
.footer-newsletter button {
  padding: 0.625rem 1rem; background: var(--primary); color: #fff;
  border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; transition: opacity 0.2s;
}
.footer-newsletter button:hover { opacity: 0.9; }
.footer-bottom {
  padding: 2rem 0; border-top: 1px solid rgba(254,249,245,0.1);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-size: 0.875rem; color: rgba(254,249,245,0.4);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(254,249,245,0.4); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ===== Page Content (About, Privacy, Terms, DMCA) ===== */
.page-content { padding-top: 3rem; padding-bottom: 4rem; max-width: 48rem; }
.page-content h1 { margin-bottom: 2rem; }
.page-content h2 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--fg); }
.page-content p { color: var(--muted-fg); line-height: 1.8; margin-bottom: 1rem; }
.page-content p.meta { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 2rem; }
.page-content ul { color: var(--muted-fg); padding-left: 1.5rem; margin-bottom: 1rem; line-height: 2; }
.page-content a { color: var(--primary); }
.page-content a:hover { text-decoration: underline; }

/* Stat cards */
.stat-card {
  background: var(--card); border-radius: 1rem; padding: 2rem; border: 1px solid var(--border);
  text-align: center; box-shadow: var(--shadow-card);
}
.stat-card h3 { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-card p { color: var(--muted-fg); font-size: 0.875rem; }

/* Cards grid for category pages */
.cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-grid h3 { font-family: 'Playfair Display', serif; font-weight: 700; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--primary); }

/* ============ Card Detail page ============ */
.card-detail { padding-top: 2rem; padding-bottom: 4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--muted-fg); margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--muted-fg); transition: color .2s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span[aria-current="page"] { color: var(--fg); }
.back-link { display: inline-block; color: var(--primary); font-weight: 600; font-size: .875rem; margin-bottom: 1.5rem; }
.back-link:hover { opacity: .8; }
.card-detail h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; max-width: 60rem; }
.card-detail .lead { color: var(--muted-fg); font-size: 1.0625rem; line-height: 1.7; max-width: 48rem; margin-bottom: 2.5rem; }

.card-detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
@media (min-width: 1024px) { .card-detail-grid { grid-template-columns: 1fr 320px; gap: 3rem; } }

.hero-image { border-radius: 1.5rem; overflow: hidden; background: var(--muted); box-shadow: 0 4px 20px -4px rgba(0,0,0,.1); }
.hero-image img { width: 100%; height: auto; display: block; }

.size-picker { margin-top: 1.5rem; max-width: 28rem; }
.size-picker h2 { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; }
.size-description { color: var(--muted-fg); font-size: .8125rem; margin-bottom: .75rem; }
.size-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 768px) { .size-options { gap: .75rem; } }
.size-option { background: transparent; border: 2px solid transparent; border-radius: .75rem; overflow: hidden; cursor: pointer; padding: 0; transition: border-color .2s, box-shadow .2s; text-align: left; }
.size-option:hover { border-color: var(--border); }
.size-option.is-active { border-color: var(--primary); box-shadow: 0 10px 30px -10px rgba(232,90,108,.3); }
.size-option span { display: block; padding: .375rem .5rem; background: var(--card); font-size: .75rem; font-weight: 600; color: var(--fg); }
.size-option.is-active span { color: var(--primary); }
.size-thumb { background: var(--muted); overflow: hidden; max-height: 100px; }
.size-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.size-horizontal { aspect-ratio: 16/10; }
.size-square { aspect-ratio: 1/1; }
.size-tall { aspect-ratio: 3/4; }

.card-actions { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1.5rem; align-self: start; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--gradient-hero, linear-gradient(135deg,#e85a6c,#ff7e3e)); color: #fff; font-weight: 600; padding: 1rem 1.5rem; border-radius: 1rem; box-shadow: 0 10px 30px -10px rgba(232,90,108,.4); border: none; cursor: pointer; text-decoration: none; transition: opacity .2s; }
.btn-primary:hover { opacity: .95; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--card); border: 2px solid var(--border); color: var(--fg); font-weight: 600; padding: 1rem 1.5rem; border-radius: 1rem; cursor: pointer; transition: border-color .2s, color .2s; }
.btn-outline:hover, .btn-outline.is-liked { border-color: var(--primary); color: var(--primary); background: rgba(232,90,108,.06); }

.share-box { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; }
.share-box h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.share-row a { display: flex; align-items: center; justify-content: center; padding: .75rem; border-radius: .75rem; background: var(--muted); color: var(--fg); font-weight: 700; transition: background .2s, color .2s; text-decoration: none; }
.share-row a:hover { background: rgba(232,90,108,.12); color: var(--primary); }

.info-box { background: rgba(0,0,0,.03); border-radius: 1rem; padding: 1.25rem; font-size: .875rem; color: var(--muted-fg); line-height: 1.6; }
.info-title { color: var(--fg); font-weight: 600; margin-bottom: .25rem; }

.related-section { border-top: 1px solid var(--border); padding-top: 3rem; }
.related-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; margin-bottom: 2rem; }
.related-card { display: block; border-radius: 1rem; overflow: hidden; background: var(--card); box-shadow: 0 4px 16px -8px rgba(0,0,0,.1); transition: transform .3s, box-shadow .3s; text-decoration: none; color: inherit; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -12px rgba(232,90,108,.25); }
.related-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s; }
.related-card:hover img { transform: scale(1.05); }
.related-card h3 { font-size: .9375rem; font-weight: 600; padding: 1rem; line-height: 1.4; }

/* ===== Names directory page ===== */
.names-page { padding: 2.5rem 1rem 4rem; }
.crumbs { font-size: .875rem; color: var(--muted-fg); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted-fg); }
.crumbs a:hover { color: var(--primary); }
.names-title { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700; margin: 0 0 .75rem; color: var(--fg); }
@media (min-width:768px){ .names-title { font-size: 3rem; } }
.names-lead { color: var(--muted-fg); font-size: 1.0625rem; max-width: 48rem; line-height: 1.7; margin: 0 0 2rem; }

.alphabet { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.alphabet a {
  width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--card); border: 1px solid var(--border);
  color: var(--fg); font-weight: 600; font-size: 1rem; text-decoration: none; transition: all .2s;
}
.alphabet a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.name-search { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; margin-bottom: 2.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.name-search label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .75rem; color: var(--fg); }
.name-search-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.name-search-row input { flex: 1; min-width: 220px; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: .75rem; font-size: 1rem; background: var(--bg); }
.name-search-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,107,.15); }
.name-search-row button { padding: .9rem 1.75rem; background: var(--primary); color: #fff; border: 0; border-radius: .75rem; font-weight: 600; font-size: 1rem; cursor: pointer; }
.name-search-row button:hover { filter: brightness(.95); }
.name-results { margin: .85rem 0 0; color: var(--muted-fg); font-size: .875rem; }

.names-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width:1024px){ .names-layout { grid-template-columns: 1fr 300px; } }

.letter-section { scroll-margin-top: 6rem; margin-bottom: 2.5rem; }
.letter-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.letter-badge {
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.75rem;
  box-shadow: 0 8px 20px -8px rgba(255,107,107,.5);
}
.letter-head h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; margin: 0; color: var(--fg); }
.name-list { display: flex; flex-wrap: wrap; gap: .35rem .85rem; font-size: 1.0625rem; line-height: 1.8; }
.name-list a { color: var(--primary); text-decoration: none; }
.name-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.name-list .muted { color: var(--muted-fg); font-size: .9375rem; }
.all-link { display: inline-block; margin-top: 1rem; padding: .6rem 1.1rem; background: var(--muted, #f5f1ea); color: var(--fg); border-radius: 999px; font-weight: 600; font-size: .875rem; text-decoration: none; transition: all .2s; }
.all-link:hover { background: var(--primary); color: #fff; }

.names-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.side-card h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; color: var(--fg); }
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; font-size: .9375rem; }
.side-card a { color: var(--primary); text-decoration: none; }
.side-card a:hover { text-decoration: underline; }
.side-link { display: block; margin-top: 1rem; color: var(--primary); font-weight: 600; }
