/* ═══════════════════════════════════════════
   The Ducking Site — Blog Styles
   ═══════════════════════════════════════════ */

:root {
  --bg-sky: #87CEEB;
  --bg-blue: #1a9fff;
  --yellow: #ffd400;
  --yellow-light: #ffe566;
  --orange: #ff9e2c;
  --orange-hot: #ff6b2c;
  --pink: #ff6b9d;
  --green: #4cd964;
  --cyan: #00d4ff;
  --white: #ffffff;
  --off-white: #fff9e6;
  --text-dark: #1a1a2e;
  --text-mid: #3a3a5c;
  --text-light: #888;
  --card-bg: #ffffff;
  --card-shadow: rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg-blue) 100%);
  min-height: 100vh;
}

/* ─── Nav ─── */
nav {
  background: rgba(26, 159, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--yellow);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}
.logo span {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.back {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: auto;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.back:hover { border-color: var(--yellow); color: var(--yellow); }

/* ─── Article Layout ─── */
article {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}
.article-card {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px var(--card-shadow);
}

/* ─── Hero Banner ─── */
.article-hero {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin: -1rem -0.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ctext x='10' y='60' font-size='50' opacity='0.08'%3E🦆%3C/text%3E%3C/svg%3E");
  background-size: 80px;
}
.article-hero .hero-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  position: relative;
}
.article-hero h1 {
  position: relative;
  color: var(--text-dark) !important;
  text-shadow: none;
}

/* ─── Typography ─── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}
h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}
h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 0.8rem;
}
h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 0.5rem;
}
p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}
ul, ol {
  color: var(--text-mid);
  line-height: 1.8;
  margin: 0.5rem 0 1.5rem 1.5rem;
}
li { margin-bottom: 0.4rem; }
a { color: var(--bg-blue); }

/* ─── Product Card (with image) ─── */
.product-pick {
  background: #fafafa;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--yellow);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.product-pick .product-img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.product-pick .product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-pick .product-info {
  flex: 1;
  min-width: 0;
}
.product-pick .product-info h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}
.product-pick .product-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.product-pick .product-info .amazon-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.product-pick .product-info .amazon-btn:hover {
  background: var(--orange);
  color: #fff;
}

/* ─── Duck Item (listicle style) ─── */
.duck-item {
  background: #fafafa;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid var(--yellow);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.duck-item .product-img {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.duck-item .product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.duck-item .duck-info {
  flex: 1;
  min-width: 0;
}
.duck-item .duck-info h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.3rem;
}
.duck-item .duck-info p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ─── Callout Box ─── */
.callout {
  background: linear-gradient(135deg, #fff9e6, #fff3cc);
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0; font-weight: 600; }

/* ─── Section Divider ─── */
.section-divider {
  text-align: center;
  font-size: 1.5rem;
  margin: 2rem 0;
  opacity: 0.3;
  letter-spacing: 0.5em;
}

/* ─── CTA Box ─── */
.cta-box {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Ctext x='5' y='45' font-size='35' opacity='0.06'%3E🦆%3C/text%3E%3C/svg%3E");
  background-size: 60px;
}
.cta-box h3 {
  font-family: 'Fredoka', sans-serif;
  color: #fff;
  margin-bottom: 0.3rem;
  position: relative;
}
.cta-box p {
  color: rgba(255,255,255,0.9);
  position: relative;
}
.cta-box a {
  display: inline-block;
  background: #fff;
  color: var(--orange-hot);
  font-weight: 800;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 0.5rem;
  position: relative;
  transition: transform 0.2s;
}
.cta-box a:hover { transform: scale(1.05); }

/* Dark CTA variant */
.cta-box.cta-dark {
  background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
}
.cta-box.cta-dark h3 { color: var(--yellow); }
.cta-box.cta-dark a { color: var(--text-dark); background: var(--yellow); }

/* ─── Disclosure ─── */
.disclosure {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: #999;
  border: 1px solid #eee;
}
.disclosure p { color: #999; margin: 0; }

/* ─── Footer ─── */
.blog-footer {
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.blog-footer a {
  color: var(--yellow-light);
  text-decoration: none;
}
.blog-footer a:hover { text-decoration: underline; }

/* ─── Quick Nav (in-article) ─── */
.quick-nav {
  background: linear-gradient(135deg, #f0f8ff, #e8f4ff);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  border: 1px solid rgba(26, 159, 255, 0.15);
}
.quick-nav h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  color: var(--bg-blue);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quick-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quick-nav li {
  margin: 0;
}
.quick-nav a {
  display: inline-block;
  background: #fff;
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.2s;
}
.quick-nav a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--text-dark);
}

/* ─── Blog Index Page ─── */
.hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  color: #fff;
}
.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.4rem;
  color: var(--yellow);
  text-shadow: 2px 3px 0 rgba(0,0,0,0.15);
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

.posts {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.post-card h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.5rem 0;
  line-height: 1.3;
}
.post-card h2::before { display: none; }
.post-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
  flex: 1;
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.tag-pets { background: #fce4ec; color: #c62828; }
.tag-office { background: #e3f2fd; color: #1565c0; }
.tag-baby { background: #fff3e0; color: #e65100; }
.tag-party { background: #f3e5f5; color: #7b1fa2; }
.tag-cars { background: #e8f5e9; color: #2e7d32; }
.tag-holiday { background: #ffebee; color: #b71c1c; }
.tag-bath { background: #e0f7fa; color: #00838f; }
.tag-fun { background: #fff8e1; color: #f57f17; }
.tag-decor { background: #f3e5f5; color: #6a1b9a; }
.tag-gifts { background: #fce4ec; color: #ad1457; }
.tag-weird { background: #1a1a1a; color: #ff6b6b; }
.tag-tech { background: #e8eaf6; color: #283593; }

.post-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid #f0f0f0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  nav { padding: 0.6rem 1rem; }
  h1 { font-size: 1.6rem; }
  .article-card { padding: 2rem 1.5rem; }
  .article-hero { padding: 1.5rem 1rem; margin: -0.5rem -0.25rem 1.5rem; }
  .article-hero .hero-emoji { font-size: 2rem; }
  
  .product-pick {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-pick .product-img {
    width: 140px;
    height: 140px;
  }
  
  .duck-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .duck-item .product-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .article-card { padding: 1.5rem 1rem; border-radius: 16px; }
  article { padding: 0 0.75rem 3rem; }
}
