/* =====================================================================
   Podbants look "A · Friendly neighborhood"
   Loaded after every other stylesheet, so it sets the look for the whole site:
   rounded fonts, pill buttons, soft blue page heads, big rounded cards.
   To go back to the old look, remove the theme.css line in includes/header.php.
   ===================================================================== */
:root {
  --yellow:     #ffd23f;
  --yellow-dk:  #f2bf12;
  --ink:        #10204a;
  --muted:      #55627f;
  --line:       #dfe7f6;
  --blue-tint:  #eef3fd;
  --radius:     20px;
  --font-head:  "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body:  "Nunito Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow-a:   0 10px 30px rgba(11, 47, 122, .10);
}

body { font-family: var(--font-body); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-weight: 700; }

/* ---- Buttons: rounded pills, bold ---- */
.btn { border-radius: 999px; font: 800 1rem/1 var(--font-body); letter-spacing: 0; padding: .9rem 1.4rem; }
.btn-yellow { background: var(--yellow); color: var(--blue-deep); }
.btn-yellow:hover { background: var(--yellow-dk); transform: translateY(-1px); }
.btn-ghost-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost-white:hover { background: #fff; color: var(--blue-deep); }

/* ---- Form fields ---- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"],
input[type="url"], input[type="datetime-local"], input[type="date"], select, textarea { border-radius: 12px; font-family: var(--font-body); }

/* ---- Header ---- */
.topstrip { font-weight: 700; padding: .5rem 1rem; }
.site-header { border-bottom-color: #e6ecf7; }
.logo { font-family: var(--font-head); }
.logo-word { font-weight: 700; font-size: 1.85rem; letter-spacing: -0.03em; }
.main-nav { gap: .2rem; }
.main-nav a:not(.btn) { font-weight: 700; padding: .45rem .6rem; border-radius: 999px; white-space: nowrap; }
.main-nav a:not(.btn):hover { text-decoration: none; background: var(--blue-tint); }
.nav-menu-btn { border-radius: 999px; font-weight: 700; }
.nav-menu-panel { border-radius: 18px; box-shadow: var(--shadow-a); }

/* ---- Page heads: soft blue instead of solid blue ---- */
.hero, .mybids-head { background: var(--blue-tint); color: var(--blue-deep); border-bottom: 0; }
.hero h1, .mybids-head h1 { color: var(--blue-deep); }
.hero-sub, .mybids-head p { color: #33456f; }
.hero .search-form { border-radius: 999px; box-shadow: var(--shadow-a); padding: .4rem; }
.hero .search-form select, .hero .search-form input { border-radius: 999px; border-color: transparent; background: #f6f8fd; }
.hero .search-form .btn { border-radius: 999px; }

/* ---- Section titles ---- */
.section-head h2, .categories h2, .how-a h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); color: var(--blue-deep); }

/* ---- Cards across the site ---- */
.tile, .seller-card, .comm-card, .home-bid a, .result-list { border-radius: 24px; }
.tile { border: 2px solid #e6ecf7; }
.tile:hover, .tile:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-a); border-color: #c9d8f5; }
.tile-media { margin: .6rem .6rem 0; border-radius: 18px; }
.tile-fallback { background: #dfe8fb; }
.tile-badge { border-radius: 999px; font: 800 .8rem/1 var(--font-body); padding: .4rem .7rem; }
.tile-title { font-size: 1.25rem; }
.categories { background: #fff; }
.comm-card { border: 2px solid #e6ecf7; box-shadow: none; }
.notice { border-radius: 16px; border-left: 0; background: #fff8dc; }

/* ---- Strips ---- */
.chat-strip { background: #fff8dc; }
.chat-strip .btn { background: var(--blue); color: #fff; }
.chat-strip .chat-strip-alt { background: transparent; color: var(--blue-deep); box-shadow: inset 0 0 0 2px var(--blue-deep); }
.chat-strip .chat-strip-alt:hover { background: var(--blue-deep); color: #fff; }
.gotw { background: var(--blue-deep); }
.gotw-row { padding-block: 1.6rem; }

/* ---- Footer ---- */
.site-footer { border-top: 0; padding: 2.2rem 0; }
.site-footer a { font-weight: 700; color: #fff; }

/* =====================================================================
   Home page (index.php)
   ===================================================================== */
.hero-a { padding: 4rem 0; overflow: hidden; }
.hero-a-row { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; }
.hero-a-text { flex: 1 1 460px; min-width: 0; display: grid; gap: 1.2rem; justify-items: start; }
.hero-a-kicker { background: #fff; color: var(--blue-deep); font-weight: 800; font-size: .9rem; padding: .4rem .9rem; border-radius: 999px; border: 2px solid #c9d8f5; }
.hero-a h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1.02; max-width: none; letter-spacing: -0.03em; }
.hero-a .hero-sub { margin: 0; font-size: 1.2rem; line-height: 1.5; max-width: 34ch; }
.hero-a .search-form { width: 100%; max-width: 620px; }

.hero-a-card { flex: 0 1 400px; min-width: 0; margin-inline: auto; background: #fff; border-radius: 28px; padding: 1.4rem; box-shadow: 0 18px 44px rgba(11,47,122,.16); display: grid; gap: .8rem; transform: rotate(-1.5deg); }
.hac-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hac-live { background: #ffe9e5; color: #b3261e; font-weight: 800; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; }
.hac-store { font-size: .85rem; color: var(--muted); font-weight: 700; }
.hac-media { height: 170px; border-radius: 18px; background: #f6e7cd; display: grid; place-items: center; overflow: hidden; font-size: 3rem; }
.hac-media img { width: 100%; height: 100%; object-fit: cover; }
.hac-title { font-size: 1.4rem; color: var(--blue-deep); }
.hac-price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.hac-price b { font: 700 2.4rem/1 var(--font-head); color: var(--blue-deep); }
.hac-price s { color: var(--muted); }
.hac-price span { margin-left: auto; color: #0f7b6c; font-weight: 800; }
.hac-bar { display: block; height: 12px; border-radius: 999px; background: var(--blue-tint); overflow: hidden; }
.hac-bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.hac-count { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; }
.hac-count strong { color: var(--blue-deep); }
.hac-join { text-align: center; font-size: 1.05rem; padding: 1rem; border-radius: 16px; }

.how-a { padding: 4rem 0 1rem; }
.how-a h2 { margin-bottom: 1.6rem; }
.how-a-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.how-a-step { border-radius: 24px; padding: 1.6rem; display: grid; gap: .55rem; align-content: start; }
.how-a-step h3 { font-size: 1.3rem; color: var(--blue-deep); }
.how-a-step p { margin: 0; color: #33456f; line-height: 1.5; }
.how-a-num { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font: 700 1.5rem/1 var(--font-head); }
.how-1 { background: #fff8dc; } .how-1 .how-a-num { background: var(--yellow); color: var(--blue-deep); }
.how-2 { background: var(--blue-tint); } .how-2 .how-a-num { background: var(--blue); color: #fff; }
.how-3 { background: #e4f5f1; } .how-3 .how-a-num { background: #0f7b6c; color: #fff; }

.home-a .home-bids { padding: 3rem 0 1rem; }
.home-a .home-bid-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 300px)); gap: 1.25rem; }   /* fixed card size, even with only one bid */
.home-a .home-bid a { border: 2px solid #e6ecf7; padding: 1.1rem; gap: .5rem; }
.home-a .home-bid a:hover { border-color: #c9d8f5; box-shadow: var(--shadow-a); }
.home-a .home-bid-media { aspect-ratio: auto; height: 150px; border-radius: 16px; background: var(--blue-tint); font-size: 2.2rem; }
.home-a .home-bid-media em { border-radius: 999px; }
.home-a .home-bid-title { font-size: 1.1rem; }
.home-a .home-bid-prices b { font: 700 1.75rem/1 var(--font-head); color: var(--blue-deep); }
.home-a .home-bid-prices s { color: var(--muted); margin-left: .3rem; }
.home-a .bid-bar { height: 10px; border-radius: 999px; }
.home-a .bid-bar span { border-radius: 999px; }
.home-a .home-bid-left { font-size: .88rem; color: var(--muted); font-weight: 600; line-height: 1.35; }
.home-a .home-bid-title { line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-a .home-bid-prices { display: flex; align-items: baseline; gap: .2rem; }
@media (max-width: 600px) { .home-a .home-bid-grid { grid-template-columns: 1fr; } }
.home-a .chat-strip { margin-top: 2rem; }
.home-a .categories { padding-bottom: 3rem; }

.group-cta { padding: 0 0 4rem; }
.group-cta-box { background: var(--blue); color: #fff; border-radius: 32px; padding: 2.5rem; display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.group-cta-text { flex: 1 1 380px; display: grid; gap: .7rem; }
.group-cta-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); color: #fff; }
.group-cta-text p { margin: 0; font-size: 1.1rem; line-height: 1.5; color: #dfe8fb; }
.group-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero-a { padding: 2.5rem 0; }
  .hero-a-card { transform: none; }
  .hero .search-form { border-radius: 24px; }
  .hero .search-form select, .hero .search-form input, .hero .search-form .btn { border-radius: 14px; }
  .group-cta-box { padding: 1.8rem; border-radius: 26px; }
  .tile-media { margin: .45rem .45rem 0; border-radius: 14px; }
}

/* ---- Store page product cards ---- */
.product-media { background: #e6eefc; }
.add-form { min-width: 0; }
.add-btn { min-width: 0; padding: .75rem .7rem; font-size: .92rem; }
.add-btn .line-total { overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   Extra colors: blue + yellow stay the main colors; these friendly helpers
   give each category, bid, seller and section its own color.
   ===================================================================== */
:root {
  --c-coral: #ff7a59;  --c-coral-tint: #ffeae3;  --c-coral-ink: #a3301a;
  --c-mint:  #12a58a;  --c-mint-tint:  #e1f6f1;  --c-mint-ink:  #0b6b5a;
  --c-grape: #7a4fd6;  --c-grape-tint: #f0eafd;  --c-grape-ink: #5128a8;
  --c-peach: #ffa94d;  --c-peach-tint: #fff1df;  --c-peach-ink: #8a4f00;
  --c-sky:   #3fa4f0;  --c-sky-tint:   #e3f2fe;  --c-sky-ink:   #1a5f99;
  --c-sun-tint: #fff8dc;
}

/* Colored underline under section titles */
.how-a h2::after, .home-a .section-head h2::after, .home-a .categories h2::after {
  content: ""; display: block; width: 64px; height: 7px; border-radius: 99px; margin-top: .55rem; background: var(--yellow);
}
.home-a .home-bids .section-head h2::after { background: var(--c-coral); }
.home-a .home-sellers .section-head h2::after { background: var(--c-mint); }
.home-a .categories h2::after { background: var(--c-grape); }

/* Hero: playful color shapes behind the content */
.hero-a { position: relative; isolation: isolate; }
.hero-a::before, .hero-a::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero-a::before { width: 340px; height: 340px; right: -90px; top: -110px; background: var(--c-coral-tint); }
.hero-a::after  { width: 220px; height: 220px; left: -70px; bottom: -90px; background: var(--c-mint-tint); }
.hero-a-row { position: relative; }
.hero-a-row::before { content: ""; position: absolute; z-index: -1; width: 90px; height: 90px; border-radius: 28px; background: var(--c-grape-tint); transform: rotate(18deg); right: 44%; bottom: -30px; }
.hero-a-kicker { border-color: var(--c-coral); }
.hero-a-kicker::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-coral); margin-right: .45rem; vertical-align: 1px; }

/* Live bid cards: each one its own color */
.home-a .home-bid:nth-child(4n+1) .home-bid-media { background: var(--c-sky-tint); }
.home-a .home-bid:nth-child(4n+2) .home-bid-media { background: var(--c-coral-tint); }
.home-a .home-bid:nth-child(4n+3) .home-bid-media { background: var(--c-mint-tint); }
.home-a .home-bid:nth-child(4n+4) .home-bid-media { background: var(--c-grape-tint); }
.home-a .home-bid:nth-child(4n+2) .bid-bar span { background: var(--c-coral); }
.home-a .home-bid:nth-child(4n+3) .bid-bar span { background: var(--c-mint); }
.home-a .home-bid:nth-child(4n+4) .bid-bar span { background: var(--c-grape); }

/* Category tiles: six soft colors in turn */
.tile:nth-child(6n+1) .tile-media, .tile:nth-child(6n+1) .tile-fallback { background: var(--c-sky-tint); }
.tile:nth-child(6n+2) .tile-media, .tile:nth-child(6n+2) .tile-fallback { background: var(--c-coral-tint); }
.tile:nth-child(6n+3) .tile-media, .tile:nth-child(6n+3) .tile-fallback { background: var(--c-mint-tint); }
.tile:nth-child(6n+4) .tile-media, .tile:nth-child(6n+4) .tile-fallback { background: var(--c-grape-tint); }
.tile:nth-child(6n+5) .tile-media, .tile:nth-child(6n+5) .tile-fallback { background: var(--c-peach-tint); }
.tile:nth-child(6n+6) .tile-media, .tile:nth-child(6n+6) .tile-fallback { background: var(--c-sun-tint); }
.tile:nth-child(6n+2) .tile-badge { background: var(--c-coral); color: #fff; }
.tile:nth-child(6n+3) .tile-badge { background: var(--c-mint); color: #fff; }
.tile:nth-child(6n+4) .tile-badge { background: var(--c-grape); color: #fff; }
.tile:nth-child(6n+5) .tile-badge { background: var(--c-peach); color: #3b2200; }
.tile:nth-child(6n+2):hover { border-color: var(--c-coral); }
.tile:nth-child(6n+3):hover { border-color: var(--c-mint); }
.tile:nth-child(6n+4):hover { border-color: var(--c-grape); }
.tile:nth-child(6n+5):hover { border-color: var(--c-peach); }

/* Seller cards: four header colors in turn (a store's own banner photo still shows through) */
.seller-card { border-radius: 24px; }
.seller-card:hover, .seller-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-a); }
.seller-card:nth-child(4n+2) .seller-top { background: linear-gradient(rgba(18,165,138,.9), rgba(18,165,138,.9)), var(--banner) center / cover, var(--c-mint); }
.seller-card:nth-child(4n+3) .seller-top { background: linear-gradient(rgba(122,79,214,.9), rgba(122,79,214,.9)), var(--banner) center / cover, var(--c-grape); }
.seller-card:nth-child(4n+4) .seller-top { background: linear-gradient(rgba(255,122,89,.92), rgba(255,122,89,.92)), var(--banner) center / cover, var(--c-coral); }

/* Steps: mint for step 3 */
.how-3 { background: var(--c-mint-tint); } .how-3 .how-a-num { background: var(--c-mint-ink); }

/* Group banner: colored dots */
.group-cta-box { position: relative; overflow: hidden; isolation: isolate; }
.group-cta-box::before, .group-cta-box::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.group-cta-box::before { width: 120px; height: 120px; right: -36px; bottom: -66px; background: var(--c-coral); opacity: .9; }
.group-cta-box::after  { width: 90px; height: 90px; right: -30px; top: -40px; background: var(--c-mint); opacity: .9; }

/* Chat strip and footer accents */
.chat-strip { background: var(--c-sun-tint); border-top: 4px solid var(--yellow); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0 20%, var(--c-coral) 20% 40%, var(--c-mint) 40% 60%, var(--c-grape) 60% 80%, var(--c-sky) 80% 100%); }

/* Form boxes that had no style yet (email, password, textarea) match the others */
.comm-form input[type="email"], .comm-form input[type="password"], .comm-form input[type="tel"], .comm-form textarea {
  width: 100%; min-width: 0; padding: .6rem .75rem; border: 1.5px solid var(--line); border-radius: 12px; font: 400 1rem var(--font-body); background: var(--white); color: var(--ink); box-sizing: border-box; }
.comm-form textarea { resize: vertical; line-height: 1.5; }
.comm-form input:focus, .comm-form textarea:focus, .comm-form select:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--blue); }

/* Podbants wordmark: "pod" in bright blue, "bants" in deep blue */
.logo-word { color: var(--blue-deep); }
.logo-pod { color: var(--blue); }
.logo-mark { width: 3rem; height: 3rem; margin-right: -.2rem; }
@media (max-width: 720px) { .hero-a::before { width: 200px; height: 200px; right: -90px; top: -80px; } }

/* Show / hide password eye button */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { width: 100%; padding-right: 3.2rem !important; box-sizing: border-box; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pw-eye:hover { color: var(--blue); background: var(--blue-tint); }
.pw-eye[aria-pressed="true"] { color: var(--blue); }
.pw-eye:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; }

/* Address suggestions (delivery form) */
.addr-wrap { position: relative; display: block; }
.addr-wrap input { width: 100%; box-sizing: border-box; }
.addr-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-a); max-height: 320px; overflow-y: auto; }
.addr-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 400; }
.addr-item b { color: var(--blue-deep); font-weight: 700; }
.addr-item span { color: var(--muted); font-size: .9rem; }
.addr-item:hover, .addr-item[aria-selected="true"] { background: var(--blue-tint); }
.addr-note { padding: 8px 12px 4px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
