/* 
 * Thai Spice Cafe - Blog Public View Styles
 * Matches main site branding
 */

:root {
  --brand-red: #880805;
  --brand-red-dark: #360606;
  --accent: #CFA670;
  --accent-dark: #b08c52;
  --text-dark: #2c2c2c;
  --bg-light: #f5f5f5;
}

/* Global Styles */
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.7;
}

/* Header/Navigation */
/* ── Blog top info bar ── */
.blog-topinfo {
  background: #5f0000;
  color: rgba(255,255,255,.92);
  height: 44px;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.blog-topinfo a { color: rgba(255,255,255,.92); }
@media(max-width:767px){ .blog-topinfo { display: none !important; } }

/* ── Blog navbar (solid, matches main site scrolled state) ── */
.blog-header {
  background: #450404;
  position: sticky;
  top: 0;
  z-index: 1200;
}

.blog-header .navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.blog-header .navbar-brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: height .2s;
}

.blog-header .nav-link {
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.15s ease;
  padding: 0.5rem 1rem;
}

.blog-header .nav-link:hover,
.blog-header .nav-link.active {
  color: var(--accent);
}

/* Blog Index Page */
.blog-index-header {
  background: linear-gradient(180deg, #450404 0%, var(--brand-red) 100%);
  color: white;
  padding: 72px 0 56px;
  margin-bottom: 3rem;
  text-align: center;
}

.blog-hero-kristi {
  font-family: 'Kristi', cursive;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: .15rem;
}

.blog-index-header h1 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.blog-index-header p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* Blog Cards */
.blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  background: white;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(136, 8, 5, 0.15);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-title {
  color: var(--brand-red-dark);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-date {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 1rem;
}

/* ============================================
   PROMOTIONAL BANNER (shared with public pages)
   ============================================ */
.ad-banner-section {
  padding: 2rem 1rem;
  text-align: center;
}
.ad-banner-inner {
  max-width: 920px;
  margin: 0 auto;
}
.ad-banner-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #1a4a6b;
  margin-bottom: .85rem;
  text-align: center;
}
.ad-banner-heading a {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.ad-banner-heading a:hover { color: #0a58ca; }
.ad-banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ad-banner-img:hover { transform: translateY(-2px); }

/* ============================================
   FILTER BAR — Mazer-style nav pills
   ============================================ */
.blog-filter-section {
  margin-bottom: 2.5rem;
}
.blog-filter-section .filter-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: .75rem;
}
.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
  cursor: pointer;
  /* inactive */
  background: #f4f4f4;
  color: #555;
  border-color: #e8e8e8;
}
.blog-filter-pill:hover {
  background: #fff;
  color: var(--brand-red);
  border-color: var(--brand-red);
  box-shadow: 0 3px 10px rgba(136,8,5,.12);
  transform: translateY(-1px);
}
.blog-filter-pill.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(136,8,5,.25);
}
.blog-filter-pill.active:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-1px);
}
.blog-filter-pill .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(255,255,255,.25);
  color: inherit;
  padding: 0 .3rem;
}
.blog-filter-pill:not(.active) .pill-count {
  background: rgba(0,0,0,.07);
  color: #888;
}
/* active tag chip shown inline */
.blog-tag-active-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  background: #fff3cd;
  color: #7a5000;
  border: 2px solid #ffc107;
  text-decoration: none;
}
.blog-tag-active-chip .chip-dismiss {
  font-size: 1rem;
  line-height: 1;
  color: #b07000;
  text-decoration: none;
  transition: color .15s;
}
.blog-tag-active-chip .chip-dismiss:hover { color: #333; }

/* Category & tag inline badges (on cards & post page) */
.blog-category-badge {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s;
}
.blog-category-badge:hover {
  background: var(--brand-red-dark);
  color: #fff;
}
.blog-tag-badge {
  display: inline-block;
  background: #f5f0f0;
  color: var(--brand-red-dark);
  font-size: 0.72rem;
  font-weight: 500;
  padding: .2rem .65rem;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(136,8,5,.15);
  transition: background .2s, color .2s;
}
.blog-tag-badge:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

/* Buttons */
.btn-blog-primary {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-blog-primary:hover {
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(136, 8, 5, 0.3);
}

.btn-blog-secondary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-blog-secondary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
}

/* Blog Post View */
.blog-post-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}

.blog-post-title {
  color: var(--brand-red-dark);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-post-meta {
  color: #666;
  font-size: 0.95rem;
}

.blog-post-meta time {
  color: var(--accent);
  font-weight: 500;
}

.blog-post-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  color: var(--brand-red-dark);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.blog-post-content h3 {
  font-size: 1.5rem;
}

.blog-post-content p {
  margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content a {
  color: var(--brand-red);
  text-decoration: underline;
}

.blog-post-content a:hover {
  color: var(--brand-red-dark);
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #999;
}

.breadcrumb-item a {
  color: var(--brand-red);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--brand-red-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #666;
}

/* Footer */
.blog-footer {
  background: linear-gradient(180deg, var(--brand-red-dark), var(--brand-red));
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.blog-footer h5 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-footer a:hover {
  color: var(--accent);
}

.blog-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* Utilities */
.text-accent {
  color: var(--accent);
}

.bg-light-grey {
  background-color: var(--bg-light);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-index-header h1 {
    font-size: 2rem;
  }

  .blog-post-title {
    font-size: 1.75rem;
  }

  .blog-post-content {
    font-size: 1rem;
  }

  .blog-card img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .blog-index-header {
    padding: 2rem 0;
  }

  .blog-index-header h1 {
    font-size: 1.5rem;
  }
}
