/* ============================================
   Paw & Bloom — Frontend Stylesheet
   Combined from home.html, article.html, category.html
   ============================================ */

:root {
  --pink: #F472B6;
  --pink-soft: #fde7ec;
  --green: #66BBB4;
  --green-dark: #4A9A91;
  --green-soft: #e5f1ee;
  --bg: #fff8fa;
  --surface: #ffffff;
  --text: #233036;
  --muted: #6b7280;
  --line: #f0d8df;
  --shadow: 0 12px 30px rgba(35, 48, 54, .08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
}

a { text-decoration: none; }

/* ---- Topbar ---- */
.topbar {
  background: #4A9A91;
  color: #fff;
  font-size: .92rem;
}
.topbar a { color: rgba(255, 255, 255, .9); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 248, 250, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 216, 223, .9);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), #ff7fa0);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(247, 167, 181, .35);
}

.site-logo-img {
  height: 46px;
  width: auto;
  max-width: 180px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-title strong { display: block; font-size: 1rem; font-weight: 700; }
.brand-title span { color: var(--muted); font-size: .8rem; font-weight: 500; }

.search-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem .9rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 6px 16px rgba(35, 48, 54, .04);
}

/* ---- Buttons ---- */
.btn-pink {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}
.btn-pink:hover { background: #f38ea2; border-color: #f38ea2; color: #fff; }

.btn-green {
  background: #66BBB4;
  border-color: #66BBB4;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}
.btn-green:hover { background: #4A9A91; border-color: #4A9A91; color: #fff; }

/* ---- Navigation ---- */
.nav-link {
  color: #384349 !important;
  font-weight: 600;
  border-radius: 999px;
  padding: .62rem .9rem !important;
}
.nav-link:hover, .nav-link.active {
  background: rgba(247, 114, 182, .14);
  color: var(--green) !important;
}

.nav-item.dropdown .nav-link { position: relative; }
.nav-item.dropdown .nav-link::after {
  display: inline-block;
  margin-left: .35em;
  vertical-align: middle;
  content: '';
  border: .3em solid transparent;
  border-top: .35em solid #384349;
  transition: transform .2s ease;
}
.nav-item.dropdown:hover .nav-link::after {
  border-top-color: var(--green);
  transform: rotate(180deg);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(35, 48, 54, .12);
  padding: .75rem;
  background: #fff;
  display: none;
  min-width: 220px;
}
.nav-item.dropdown:hover .dropdown-menu { display: block; }

.dropdown-item {
  border-radius: 10px;
  padding: .6rem .85rem;
  font-weight: 600;
  color: #384349;
  transition: all .2s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(70, 162, 138, .1);
  color: var(--green);
  border-radius: 10px;
}
.dropdown-divider { border-color: var(--line); margin: .5rem 0; }
.dropdown-header {
  font-weight: 800;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: .5rem .85rem;
}

/* ---- Offcanvas ---- */
.offcanvas { background: #fffafc; }
.offcanvas .nav-link { border-radius: 14px; padding: .75rem .9rem !important; }

.submenu-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  color: #384349;
  padding: .75rem .9rem;
  border-radius: 14px;
}
.submenu-btn:hover { background: rgba(247, 167, 181, .12); color: var(--green); }
.submenu-links a {
  display: block;
  padding: .55rem .9rem .55rem 2rem;
  color: #55606a;
  border-radius: 12px;
}

/* ---- Hero ---- */
.hero { padding: 1.8rem 0 1.25rem; }
.hero-card {
  border: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-media {
  min-height: 420px;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.42)),
    url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=1400&q=80') center/cover;
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  background: rgba(247, 167, 181, .18);
  color: var(--green-dark);
}

.hero-title { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hero-copy { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }

/* ---- Cards ---- */
.card-soft {
  background: var(--surface);
  border: 1px solid rgba(240, 216, 223, .95);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(35, 48, 54, .04);
}

.article-card {
  overflow: hidden;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  background: var(--surface);
  border: 1px solid rgba(240, 216, 223, .95);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(35, 48, 54, .04);
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(35, 48, 54, .1); }

.article-img { width: 100%; height: 210px; object-fit: cover; }
.article-body { padding: 1.15rem; }
.article-title { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; line-height: 1.4; }
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--pink); }
.article-excerpt { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.article-author { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.article-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.meta { color: var(--muted); font-size: .86rem; }

/* ---- Tags ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .68rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: .76rem;
  font-weight: 800;
}
.tag.pink { background: var(--pink-soft); color: #9e3c59; }
.tag-muted { background: #f3f4f6; color: var(--muted); }
.text-pink { color: var(--pink) !important; }

/* ---- Section ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-title { margin: 0; font-weight: 700; font-size: 1.2rem; letter-spacing: 0; }
.section-sub { margin: .25rem 0 0; color: var(--muted); }

/* ---- Category Tabs ---- */
.category-tab, .category-tabs .btn {
  border-radius: 999px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(35, 48, 54, .04);
  transition: all .2s ease;
}
.category-tab:hover, .category-tabs .btn:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  color: var(--green);
}
.category-tab.active, .category-tab.btn-green, .category-tabs .btn.btn-green {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}

/* ---- Chip ---- */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(35, 48, 54, .04);
  transition: transform .2s ease, border-color .2s ease;
}
.chip:hover { transform: translateY(-1px); border-color: rgba(47, 111, 99, .35); color: var(--green); }

/* ---- Split Panel ---- */
.split-panel {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.split-media {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.35)),
    url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=1400&q=80') center/cover;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 167, 181, .18);
  color: var(--green-dark);
  flex: 0 0 auto;
}

/* ---- Newsletter ---- */
.newsletter {
  background: linear-gradient(135deg, #fff, #fff1f5);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* ---- Footer ---- */
.footer { background: #3D7A75; color: rgba(255, 255, 255, .84); }
.footer a { color: rgba(255, 255, 255, .86); }
.footer a:hover { color: #fff; }
.footer .line { height: 1px; background: rgba(255, 255, 255, .12); margin: 1.5rem 0; }

/* ---- Category Cover ---- */
.category-cover {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2rem;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}
.category-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.category-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 100%);
}
.category-cover-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  max-width: 700px;
  color: #fff;
}
.category-cover h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.category-cover p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}

/* ---- Breadcrumb ---- */
.breadcrumb-custom {
  background: transparent;
  padding: 1rem 0 .5rem;
  font-size: .875rem;
}
.breadcrumb-custom a { color: var(--muted); }
.breadcrumb-custom a:hover { color: var(--green); }
.breadcrumb-custom .breadcrumb-item::before { color: var(--muted); }

/* ---- Subcategories ---- */
.subcategories { display: flex; flex-wrap: wrap; gap: .75rem; padding: 1.5rem 0; }
.subcategory-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: all .2s ease;
  box-shadow: 0 4px 12px rgba(35, 48, 54, .04);
}
.subcategory-chip:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 114, 182, .3);
}
.subcategory-chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- Nav Tabs Custom ---- */
.nav-tabs-custom { border: none; gap: .5rem; margin-bottom: 1.5rem; }
.nav-tabs-custom .nav-link {
  border: none;
  border-radius: 999px;
  padding: .6rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
}
.nav-tabs-custom .nav-link:hover { background: var(--green-soft); color: var(--green-dark); border-color: var(--green-soft); }
.nav-tabs-custom .nav-link.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ---- Load More ---- */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  background: var(--surface);
  border: 2px solid var(--pink);
  border-radius: 999px;
  font-weight: 700;
  color: var(--pink);
  transition: all .2s ease;
}
.load-more-btn:hover { background: var(--pink); color: #fff; }

/* ---- Article Cover ---- */
.article-cover {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}
.article-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.article-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.7) 100%);
}
.article-cover-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  color: #fff;
  width: 100%;
  max-width: 800px;
}
.article-cover-content h1 {
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* ---- Article Meta ---- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.author-info { display: flex; align-items: center; gap: .5rem; }
.author-name { font-weight: 700; color: var(--text); }
.author-credentials { font-size: .8rem; color: var(--muted); }
.article-date { font-size: .875rem; color: var(--muted); }
.article-read { font-size: .8rem; color: var(--muted); }
.reviewed-by {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: .35rem .85rem;
  border-radius: 999px;
}

/* ---- Article Content ---- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
}
.article-content h2 { font-weight: 700; font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text); }
.article-content h3 { font-weight: 600; font-size: 1.2rem; margin-top: 2rem; margin-bottom: .75rem; color: var(--text); }
.article-content p { margin-bottom: 1.25rem; font-size: 1.05rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: .5rem; }
.article-content a { color: var(--green); text-decoration: underline; }
.article-content a:hover { color: var(--green-dark); }

/* ---- Injected Products Section ---- */
.injected-products-section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border: 1px solid rgba(102, 187, 180, .2);
  border-radius: 24px;
}
.injected-products-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.injected-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.injected-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.injected-product-card .product-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.injected-product-card .product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.injected-product-card .product-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.injected-product-card .product-rating {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-bottom: .35rem;
}
.injected-product-card .product-price {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: .35rem;
}
.injected-product-card .product-pros {
  font-size: .8rem;
  color: #198754;
  margin-bottom: .5rem;
}
.injected-product-card .btn-check-price {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
  text-align: center;
  transition: background .2s;
  margin-top: auto;
}
.injected-product-card .btn-check-price:hover {
  background: var(--green-dark);
  color: #fff;
}

/* ---- Key Takeaways ---- */
.key-takeaways {
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border: 1px solid rgba(102, 187, 180, .3);
  border-radius: 20px;
  padding: 1.75rem;
  margin: 2.5rem 0;
}
.key-takeaways h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  margin-top: 0;
}
.key-takeaways ul { margin-bottom: 0; padding-left: 1.25rem; }
.key-takeaways li { margin-bottom: .6rem; font-weight: 500; }
.key-takeaways li::marker { color: var(--pink); }

/* ---- Warning Box ---- */
.warning-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.warning-box .warning-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: #856404;
  margin-bottom: .5rem;
}
.warning-box p { margin-bottom: 0; color: #856404; }

/* ---- Article Tags ---- */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tag-label { font-weight: 700; color: var(--text); }
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  transition: all .2s ease;
}
.tag-chip:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---- Author Box ---- */
.author-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 2rem 0;
}
.author-box-info h4 { font-weight: 700; margin-bottom: .25rem; }
.author-box-info p { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }

/* ---- Related Articles ---- */
.related-articles { padding: 3rem 0; }

/* ---- Trending ---- */
.trending-item:hover { background: rgba(102, 187, 180, .08); }
.trending-item:hover .trending-num { transform: scale(1.1); }

/* ---- Pagination ---- */
.pagination .page-link {
  border-radius: 999px;
  margin: 0 .25rem;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  padding: .5rem .85rem;
}
.pagination .page-link:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-dark); }
.pagination .active .page-link { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .search-pill { min-width: 100%; }
  .hero-media { min-height: 280px; }
}

@media (max-width: 768px) {
  .category-cover { min-height: 240px; }
  .category-cover h1 { font-size: 1.75rem; }
  .article-cover { min-height: 300px; }
  .article-cover-content h1 { font-size: 1.75rem; }
}