/* ===========================
   HappyTidy — Theme CSS
   DM Sans, White + Pastel
   =========================== */

:root {
  --yellow: #FFE566;
  --yellow-light: #FFF8CC;
  --yellow-dark: #E6C800;
  --sage: #C8DDB0;
  --sage-light: #EBF4DE;
  --peach: #FFD6C2;
  --lavender: #DDD6F3;
  --teal-light: #DDF0F5;
  --white: #FFFFFF;
  --bg: #F8F7F2;
  --text: #1C1C1A;
  --muted: #6B6B5E;
  --border: #E8E6DC;
  --radius: 16px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* ===========================
   HEADER
   =========================== */
.site-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-badge { display: flex; align-items: center; gap: 0.55rem; }
.logo-sticky {
  width: 36px; height: 36px;
  background: var(--yellow);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.logo-sticky svg { width: 20px; height: 20px; }
.logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  background: var(--yellow);
  color: var(--text);
  padding: 7px 18px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid var(--yellow-dark);
}
.nav .nav-cta:hover { background: var(--yellow-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: var(--yellow-light);
  border-bottom: 1.5px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.3;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0.25;
}
.hero--small { padding: 3rem 2rem 2.5rem; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: var(--yellow);
  padding: 0px;
  border-radius: 6px;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto 2rem;
}
.hero-cats {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero-cat {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}
.hero-cat:hover, .hero-cat.active {
  background: var(--yellow);
  border-color: var(--yellow-dark);
}

/* ===========================
   LAYOUT: CONTENT + SIDEBAR
   =========================== */
.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.content-wrap--single {
  grid-template-columns: 1fr 300px;
}
.content-main { min-width: 0; }

/* ===========================
   SECTION LABEL
   =========================== */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===========================
   POST CARDS
   =========================== */
.post-list { display: flex; flex-direction: column; gap: 1.25rem; }

.post-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: all 0.2s;
}
.post-card:hover {
  border-color: var(--yellow-dark);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.post-card.featured {
  background: linear-gradient(135deg, var(--yellow-light) 0%, var(--white) 60%);
  border-color: var(--yellow-dark);
}
.post-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.featured-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--text);
  padding: 2px 10px;
  border-radius: 99px;
  border: 1.5px solid var(--yellow-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 11px;
  border-radius: 99px;
}
.cat-storage    { background: var(--sage-light); color: #3A6B35; }
.cat-kitchen    { background: var(--peach);      color: #9B4E2A; }
.cat-bedroom    { background: var(--lavender);   color: #5B3EA8; }
.cat-bathroom   { background: var(--teal-light); color: #1A6B8A; }
.cat-entryway   { background: var(--yellow-light); color: #7A6000; }

.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: auto;
}
.post-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.post-card h2 a:hover { color: var(--muted); }
.post-card > p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}
.post-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: letter-spacing 0.2s;
}
.read-more:hover { letter-spacing: 0.02em; }
.post-rating {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.post-rating--large {
  margin-top: 0.75rem;
  font-size: 1rem;
  gap: 0.5rem;
}
.stars { color: #F5A623; letter-spacing: 1px; }

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--yellow); border-color: var(--yellow-dark); }
.pagination .active { background: var(--yellow); border-color: var(--yellow-dark); font-weight: 700; }

/* ===========================
   SINGLE POST
   =========================== */
.single-post { min-width: 0; }
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1.5px solid var(--border);
}
.post-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.5rem;
}
.post-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
.post-content { font-size: 1.02rem; line-height: 1.8; }
.post-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.post-content h3 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: #2563EB; text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--yellow-dark);
  background: var(--yellow-light);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
}
.post-content img { margin: 1.5rem 0; }
.post-content strong { font-weight: 700; }
.post-content hr { border: none; border-top: 1.5px solid var(--border); margin: 2rem 0; }

/* Product box */
.product-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.product-box-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.product-box-info p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.btn-amazon {
  display: inline-block;
  background: #FF9900;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-amazon:hover { background: #e68a00; }

.post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1.5px solid var(--border); }
.affiliate-note {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--peach);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.8rem;
  background: var(--lavender);
  color: #5B3EA8;
  padding: 3px 10px;
  border-radius: 99px;
}
.tag:hover { background: #c9c0f0; }

/* ===========================
   SIDEBAR
   =========================== */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 88px; }

.widget {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.newsletter-widget { background: var(--yellow-light); border-color: var(--yellow-dark); }
.newsletter-widget .widget-title { color: #7A6000; }
.newsletter-widget p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.email-input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--yellow-dark);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--white);
  margin-bottom: 0.6rem;
  outline: none;
}
.email-input:focus { border-color: #B8A000; box-shadow: 0 0 0 3px rgba(230,200,0,0.15); }
.btn-sub {
  width: 100%;
  padding: 9px;
  background: var(--yellow);
  border: 2px solid var(--yellow-dark);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-sub:hover { background: var(--yellow-dark); }

.cat-list { display: flex; flex-direction: column; gap: 0.3rem; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.15s;
  color: var(--text);
}
.cat-item:hover { background: var(--bg); }
.cat-item-left { display: flex; align-items: center; gap: 0.6rem; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.top-picks { display: flex; flex-direction: column; gap: 0.9rem; }
.pick-item { display: flex; gap: 0.85rem; align-items: center; }
.pick-thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.pick-info h4 { font-size: 0.87rem; font-weight: 600; line-height: 1.3; }
.pick-info p { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.footer-sticky {
  display: inline-flex;
  width: 28px; height: 28px;
  background: var(--yellow);
  border-radius: 5px;
  align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
  vertical-align: middle;
  margin-right: 0.3rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.76rem; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* ===========================
   PLAIN PAGE (about, privacy)
   =========================== */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.page-wrap h1 { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: -0.02em; }
.page-content { font-size: 1.02rem; line-height: 1.8; }
.page-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.page-content p { margin-bottom: 1.25rem; color: var(--muted); }
.page-content a { color: #2563EB; text-decoration: underline; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .content-wrap, .content-wrap--single {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 4rem;
  }
  .sidebar { position: static; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 1.25rem 2rem;
    border-bottom: 1.5px solid var(--border);
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .post-card { padding: 1.25rem 1.25rem; }
}
