/* Base variables, reset, and body styles */

/* Add an elegant "elite" serif for headings */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

:root{
  --bg: linear-gradient(180deg,#fbfdff 0%, #f4f7ff 100%);
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#4f46e5;
  --primary:#4f46e5;
  --shadow: 0 10px 30px rgba(15,23,42,0.12);
  --glass: rgba(255,255,255,0.6);
}

*{box-sizing:border-box}
html { scroll-behavior: smooth; }
html,body,#root{height:100%;margin:0}
body{
  /* keep the clean system UI for body text, but use an "elite" serif for headings */
  font-family: 'Inter', 'Noto Sans', system-ui, -apple-system, sans-serif;
  /* COMIC-STYLE: layered paper base + comic gifts pattern + radial burst + halftone dots */
  background:
    /* 1. Soft overlay to fade the pattern so text is readable */
    linear-gradient(180deg, rgba(255,247,236,0.92) 0%, rgba(255,242,223,0.92) 30%, rgba(247,251,255,0.95) 100%),
    /* 2. Comic gifts seamless pattern */
    url('/comic_gifts_bg.png'),
    /* 3. Energetic radial burst for focal punch */
    radial-gradient(800px 420px at 18% 14%, rgba(255,220,120,0.6), rgba(255,255,255,0) 36%),
    /* 4. Larger halftone clusters for comic texture */
    radial-gradient(circle at 80% 12%, rgba(0,0,0,0.06) 1px, transparent 2px),
    repeating-radial-gradient(circle at 30% 80%, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 10px);
    /* 5. (Removed subtle grain to reduce noise with the pattern) */
  
  background-blend-mode: normal, multiply, screen, multiply, normal;
  background-size: auto, 400px 400px, 1200px 600px, 220px 220px, 180px 180px;
  background-repeat: no-repeat, repeat, no-repeat, no-repeat, repeat;
  background-attachment: scroll, fixed, scroll, scroll, scroll;
  
  color:#0f1720;
  -webkit-font-smoothing:antialiased;
  padding:28px;
  font-size:18px;
  -moz-osx-font-smoothing:grayscale;
  /* add a slight comic-paper border to frame the canvas */
  border-top: 6px solid rgba(0,0,0,0.03);
  border-bottom: 8px solid rgba(0,0,0,0.04);
  min-height: 100vh;
}

/* Use the "elite" Cinzel serif for prominent headings */
.header h1,
.selection-box h3,
.gift-content h3,
.persona-info h3,
.table-scroll thead th,
.page-index .index-link {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.6px;
}

/* Slightly bolder/larger heading tweak */
.header h1{
  margin:0;
  font-size:52px;
  color: #07103a;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 6px 18px rgba(79,70,229,0.06);
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.14));
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(15,23,42,0.04);
}

/* Comic style additions: bold colors, halftone texture and comic font */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

:root{
  --comic-accent: #ff2255;
  --comic-yellow: #ffd132;
  --comic-blue: #1e90ff;
  --comic-outline: #101010;
  --halftone: radial-gradient(circle at 10% 10%, rgba(0,0,0,0.06) 1px, transparent 2px);
}

/* Make big headings bold and comic-like */
.header h1,
.selection-box h3,
.gift-content h3,
.persona-info h3 {
  font-family: 'Bangers', 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--comic-outline);
  -webkit-text-stroke: 1px rgba(0,0,0,0.12);
}

/* Comic background tint and subtle halftone */
body {
  /* layered comic background:
     - soft warm paper base
     - large radial burst for energetic focal point
     - subtle halftone dots overlay for comic texture
     - light vignette to keep focus centered
  */
  background:
    /* warm paper base */
    linear-gradient(180deg, #fff9f1 0%, #fff4ea 40%, #f3fbff 100%),
    /* radial burst (soft) */
    radial-gradient(800px 400px at 20% 18%, rgba(255,237,205,0.70), rgba(255,255,255,0.0) 40%),
    /* halftone dot pattern */
    repeating-radial-gradient(circle at 80% 10%, rgba(0,0,0,0.02) 0, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 6px),
    /* coarse subtle paper grain */
    linear-gradient(180deg, rgba(0,0,0,0.01), rgba(0,0,0,0.00));
  background-blend-mode: normal, screen, multiply, overlay;
  background-size: auto, cover, 200px 200px, auto;
  color:#0f1720;
  -webkit-font-smoothing:antialiased;
  padding:28px;
  font-size:18px;
  -moz-osx-font-smoothing:grayscale;
}

/* Add a soft vignette to the main container to mimic comic panel focus */
.container{
  box-shadow:
    0 18px 60px rgba(15,23,42,0.04),
    inset 0 120px 220px rgba(255,255,255,0.18);
  position: relative;
}
.container::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  background: radial-gradient(800px 400px at 50% 30%, rgba(0,0,0,0.00), rgba(0,0,0,0.035) 70%);
  mix-blend-mode: multiply;
  z-index: 0;
}

/* Make big headings sit visually above the comic texture */
.header, .selection-box, .table-scroll, .gift-card {
  position: relative;
  z-index: 2;
}

/* Speech-bubble helper for descriptions */
.speech-bubble {
  position: relative;
  background: var(--comic-yellow);
  padding: 12px 14px;
  border-radius: 8px;
  color: #111;
  font-weight:700;
  border: 3px solid var(--comic-outline);
  box-shadow: 6px 10px 0 rgba(0,0,0,0.06);
}
.speech-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -18px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid var(--comic-yellow);
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.06));
}

/* Button style: pop comic CTA */
button, .generate-btn, .item-btn {
  font-family: 'Bangers', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .8px;
  border: 4px solid var(--comic-outline);
  box-shadow: 10px 12px 0 rgba(0,0,0,0.08);
}

/* Make the topbar feel like a comic masthead */
.topbar {
  background: linear-gradient(90deg,#ffefef 0%, #fff8e6 100%);
  color: var(--comic-outline);
  border: 6px solid var(--comic-outline);
  box-shadow: 10px 18px 0 rgba(0,0,0,0.12);
}

/* Add halftone dot accent to headers and sections */
.header, .selection-box, .table-scroll, .gift-card {
  background-image: linear-gradient(transparent, rgba(0,0,0,0.01)), radial-gradient(circle at 0% 0%, rgba(0,0,0,0.02) 1px, transparent 2px);
  background-blend-mode: overlay;
}

/* small responsive tweak to keep comic headings legible */
@media (max-width: 768px) {
  .header h1 { font-size: 36px; }
  .subtitle{ font-size:16px; font-weight:700; }
}

.header {
  text-align: center;
  margin-bottom: 36px;
  padding: 18px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.35));
  box-shadow: 0 8px 18px rgba(79,70,229,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15,23,42,0.04);
}
.header h1{
  margin:0;
  font-size:52px;
  color: #07103a;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 6px 18px rgba(79,70,229,0.06);
}
.subtitle{
  margin:10px 0 0 0;
  color: var(--muted);
  font-size:22px;
  font-weight:600;
  line-height:1.12;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.1px;
}

/* Responsive adjustments (shared) */
@media (max-width: 768px) {
  .header h1 { font-size: 32px; }
  .subtitle{ font-size:16px; font-weight:600; }
  .topbar { padding: 12px; gap:10px; }
  .search-bar input[type="text"]{ padding:8px 6px; font-size:15px; }
}

/* top navigation / amazon-like header */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(90deg,#0f1724 0%, #172033 100%);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.45);
  border: 1px solid rgba(255,255,255,0.04);
}
.topbar .logo {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  color:#ffb84d;
  font-size:20px;
  letter-spacing:0.6px;
}
.topbar .logo img { height:36px; width:auto; border-radius:6px; background:#fff; padding:2px; box-shadow: 0 6px 18px rgba(15,23,42,0.12); }

.search-bar {
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  padding: 8px;
  border-radius: 8px;
  box-shadow: inset 0 2px 8px rgba(2,6,23,0.04);
  border: 1px solid rgba(2,6,23,0.04);
}
.search-bar input[type="text"]{
  flex:1;
  border: none;
  outline: none;
  font-size:16px;
  padding:10px 6px;
  background: transparent;
}
.search-bar button {
  background: linear-gradient(90deg,#ffb84d,#ff9a3c);
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight:800;
  cursor:pointer;
  color:#1b1b1b;
  box-shadow: 0 6px 18px rgba(255,154,60,0.14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.search-bar button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,154,60,0.18); }

.top-actions {
  display:flex;
  gap:14px;
  align-items:center;
}
.top-actions .account {
  font-size:13px;
  color:#fff;
  opacity:0.95;
}
.top-actions .cart {
  display:flex;
  align-items:center;
  gap:8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  color:#fff;
  font-weight:800;
  padding:6px 10px;
  border-radius:8px;
  border: 1px solid rgba(255,255,255,0.03);
}

/* subtle product-listing grid style */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

/* slightly flatter card style */
.gift-card {
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.04);
  transition: transform 0.22s cubic-bezier(.2,.9,.2,1), box-shadow 0.22s ease;
}
.gift-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 70px rgba(15,23,42,0.12);
}
.gift-content h3 { font-size:18px; margin-bottom:8px; color: #07103a; }
.gift-desc { font-size:14px; color:var(--muted); margin-bottom:10px; }
.gift-why { font-size:13px; color:#333; }