/* ==========================================================
   bloggers.in stylesheet — complete
   Mobile-first. Desktop styles layer on top via media queries.
   ========================================================== */

:root {
  --saffron:        #BA7517;
  --saffron-warm:   #EF9F27;
  --saffron-soft:   #FAEEDA;

  --ink:            #0F172A;
  --ink-soft:       #334155;
  --muted:          #64748B;
  --muted-soft:     #94A3B8;
  --line:           #E2E8F0;
  --line-soft:      #F1F5F9;
  --bg:             #FFFFFF;
  --bg-soft:        #FAFAF9;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --container-max: 1200px;
  --header-height: 60px;
}

/* Reset / base ---------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--saffron); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); gap: 12px;
}
.wordmark {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark .dot { color: var(--saffron); }

.primary-nav { display: none; }
.header-search { display: none; }

.mobile-menu-btn,
.mobile-search-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.mobile-search-btn { margin-right: 6px; }

/* Mobile-only slide-down search bar ----------------------- */
.mobile-search-bar {
  display: none;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 8px;
}
.mobile-search-bar input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 14px;
  outline: none;
  background: var(--bg);
}
.mobile-search-bar input:focus { border-color: var(--saffron); }
.mobile-search-bar button {
  height: 40px; width: 44px;
  border: none;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-search-bar button:hover { background: var(--saffron); }

body.mobile-search-open .mobile-search-bar {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu-btn,
  .mobile-search-btn { display: none; }
  .mobile-search-bar { display: none !important; }

  .primary-nav {
    display: flex; align-items: center; gap: 22px;
    margin-left: 24px;
    font-size: 14px;
    color: var(--ink-soft);
  }
  .primary-nav a:hover { color: var(--ink); }
  .primary-nav a.active { color: var(--ink); font-weight: 500; }
  .primary-nav .primary-nav-cta {
    background: var(--ink);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
  }
  .primary-nav .primary-nav-cta:hover { background: var(--saffron); color: white; }

  .header-search {
    display: flex; align-items: center;
    margin-left: auto;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    height: 36px;
    padding: 0 4px 0 10px;
    width: 280px;
  }
  .header-search input {
    flex: 1; border: none; background: transparent; outline: none;
    font: inherit; font-size: 13px; color: var(--ink);
  }
  .header-search input::placeholder { color: var(--muted-soft); }
  .header-search button {
    background: transparent; border: none; padding: 6px;
    color: var(--muted); display: inline-flex; align-items: center;
  }
  .header-search button:hover { color: var(--saffron); }
}

/* Mobile nav (slide-down panel when hamburger is tapped) -- */
@media (max-width: 767px) {
  body.mobile-nav-open .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    z-index: 49;
  }
  body.mobile-nav-open .primary-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  body.mobile-nav-open .primary-nav a:last-child { border-bottom: none; }
  body.mobile-nav-open .primary-nav .primary-nav-cta {
    background: var(--ink);
    color: white;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    text-align: center;
  }
  body.mobile-nav-open .header-search {
    display: none !important;
  }
}

/* Hero band (used on homepage and category pages) ---------- */
.hero {
  padding: 28px 0 8px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.hero-stats {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.hero-stats a:hover { color: var(--saffron); }
.hero-dots {
  display: flex; gap: 4px; padding-top: 14px;
}
.hero-dots span {
  width: 3px; height: 3px; border-radius: 50%; background: var(--saffron-warm);
}
.hero-dots span:nth-child(2) { opacity: 0.6; }
.hero-dots span:nth-child(3) { opacity: 0.3; }
.hero-dots span:nth-child(4) { opacity: 0.6; }

@media (min-width: 768px) {
  .hero { padding: 36px 0 12px; }
  .hero-title { font-size: 30px; }
}

/* Category page header ------------------------------------- */
.cat-header {
  display: flex; align-items: center; gap: 12px;
}
.cat-header-swatch {
  width: 14px; height: 14px; border-radius: 4px;
  flex-shrink: 0;
}

/* Layout grid (sidebar + main on desktop, stacked on mobile) ---- */
.layout {
  display: block;
  padding: 12px 0 32px;
}
@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 16px 0 48px;
  }
}

/* Sidebar -------------------------------------------------- */
.sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .sidebar { display: block; }
}
.sidebar-section + .sidebar-section { margin-top: 28px; }
.sidebar-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.sidebar-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
}
.sidebar-cat-link:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar-cat-link.is-active { background: var(--saffron-soft); color: var(--ink); font-weight: 500; }
.sidebar-cat-link .cat-swatch {
  width: 8px; height: 8px; border-radius: 2px;
  display: inline-block; margin-right: 8px;
  flex-shrink: 0;
}
.sidebar-cat-link .cat-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-cat-link .cat-count {
  font-size: 11px; color: var(--muted-soft);
  margin-left: 8px;
}

/* Section headings ---------------------------------------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}
.section-link {
  font-size: 12px; color: var(--muted);
}
.section-link:hover { color: var(--saffron); }

/* Featured strip (above recently active when active) ------ */
.featured-strip {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--saffron-soft);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--saffron) 25%, transparent);
}
.featured-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron);
  background: white;
  padding: 3px 8px;
  border-radius: 999px;
}
.featured-link {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink);
}

/* Blog cards grid ----------------------------------------- */
.blogs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .blogs-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (min-width: 1024px) {
  .blogs-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  background: var(--bg);
}
.blog-card:hover {
  border-color: var(--saffron);
  transform: translateY(-1px);
}
.blog-card-link {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  height: 100%;
  color: inherit;
}
.blog-card-link:hover { color: inherit; }

.blog-card-head { display: flex; gap: 10px; align-items: center; }
.blog-card-chip {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.blog-card-meta { flex: 1; min-width: 0; }
.blog-card-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-card-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-card-host { color: var(--muted-soft); }
.blog-card-body { flex: 1; }
.blog-card-post {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.blog-card-cta { color: var(--saffron); }

/* Browse all categories grid ------------------------------ */
.browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 0 32px;
}
@media (min-width: 600px) {
  .browse-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 1024px) {
  .browse-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 0 48px; }
}

.browse-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.browse-tile:hover {
  border-color: var(--saffron);
  color: var(--ink);
  transform: translateY(-1px);
}
.browse-tile-swatch {
  width: 8px; height: 8px; border-radius: 2px;
  flex-shrink: 0;
}
.browse-tile-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browse-tile-count {
  font-size: 11px;
  color: var(--muted-soft);
  margin-left: auto;
  flex-shrink: 0;
}

/* Breadcrumb ----------------------------------------------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb-sep { color: var(--muted-soft); }
.breadcrumb-current { color: var(--ink); font-weight: 500; }

/* Blog detail header --------------------------------------- */
.blog-detail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "chip titles"
    "actions actions";
  gap: 16px;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .blog-detail-head {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "chip titles actions";
    align-items: center;
    gap: 20px;
  }
}
.blog-detail-chip {
  grid-area: chip;
  width: 64px; height: 64px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.blog-detail-titles { grid-area: titles; min-width: 0; }
.blog-detail-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
@media (min-width: 768px) {
  .blog-detail-title { font-size: 28px; }
}
.blog-detail-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 10px;
  font-size: 12px;
}
.blog-detail-cat-pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  color: var(--cat-color);
  font-weight: 500;
}
.blog-detail-cat-pill:hover {
  background: color-mix(in srgb, var(--cat-color) 22%, transparent);
  color: var(--cat-color);
}
.blog-detail-host { color: var(--muted); }

.blog-detail-actions {
  grid-area: actions;
  display: flex; gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover { background: var(--saffron); color: white; }
.btn-secondary {
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-secondary:hover { color: var(--saffron); border-color: var(--saffron); }
.btn-claim {
  background: var(--saffron);
  color: white;
  width: 100%;
  justify-content: center;
}
.btn-claim:hover { background: #9C5F11; color: white; }

/* Blog detail body (main + side) --------------------------- */
.blog-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 40px;
}
@media (min-width: 1024px) {
  .blog-detail-body {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }
}

/* Post list ------------------------------------------------ */
.post-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.post-list-item {
  border-bottom: 1px solid var(--line-soft);
}
.post-list-item:last-child { border-bottom: none; }
.post-list-link {
  display: block;
  padding: 18px 0;
  color: inherit;
}
.post-list-link:hover { color: inherit; }
.post-list-link:hover .post-list-title { color: var(--saffron); }
.post-list-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.post-list-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 0;
}
.post-list-meta {
  font-size: 11px;
  color: var(--muted-soft);
  margin-top: 8px;
}

/* Sidebar (blog detail page) ------------------------------- */
.claim-card {
  background: var(--saffron-soft);
  border: 1px solid color-mix(in srgb, var(--saffron) 25%, transparent);
  border-radius: var(--radius);
  padding: 18px;
}
.claim-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 8px;
}
.claim-card-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 14px;
}

.side-meta {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-meta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.side-meta-row:last-child { border-bottom: none; }
.side-meta-label { color: var(--muted); flex-shrink: 0; }
.side-meta-value {
  color: var(--ink-soft);
  text-align: right;
  word-break: break-word;
}
a.side-meta-value:hover { color: var(--saffron); }

/* Search form (large, on /search page) -------------------- */
.search-form-large {
  display: flex; gap: 8px;
  margin: 16px 0 24px;
}
.search-form-large input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 15px;
  outline: none;
  background: var(--bg);
}
.search-form-large input:focus { border-color: var(--saffron); }
.search-form-large button {
  height: 44px;
  padding: 0 20px;
  border: none;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; font-weight: 500;
}
.search-form-large button:hover { background: var(--saffron); }

/* Prose (about page) -------------------------------------- */
.prose {
  max-width: 720px;
  margin: 24px 0 48px;
  font-size: 15px;
  color: var(--ink-soft);
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { line-height: 1.65; margin: 0 0 14px; }
.prose a { color: var(--saffron); }
.prose a:hover { text-decoration: underline; }
.prose code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--line-soft);
}
.prose strong { color: var(--ink); font-weight: 500; }
.prose-list {
  margin: 0 0 14px;
  padding-left: 22px;
  line-height: 1.7;
}
.prose-list li { margin-bottom: 4px; }

/* Footer --------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0 24px;
  margin-top: 40px;
}
.footer-inner { display: flex; flex-direction: column; gap: 24px; }

.footer-network-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}
.footer-network-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
}
.footer-sister {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.footer-sister:hover { color: var(--saffron); }
.footer-sister.is-current {
  color: var(--saffron);
  font-weight: 500;
  pointer-events: none;
}

.footer-bottom {
  display: flex; flex-direction: column; gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-marketplaces { display: flex; gap: 12px; }
.footer-mp {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--muted);
}
.footer-mp:hover { color: var(--saffron); border-color: var(--saffron); }

.footer-copyright {
  font-size: 11px; color: var(--muted-soft);
  text-align: center;
}
.footer-copyright a { color: var(--ink-soft); }
.footer-copyright a:hover { color: var(--saffron); }

.footer-social { display: flex; gap: 14px; color: var(--muted); }
.footer-social a:hover { color: var(--saffron); }

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-copyright { text-align: left; }
}

/* Empty state --------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}
.empty-state a { color: var(--saffron); }
