/*
 * MyHolidayMatch – Blog shared styles
 * Used by blog/index.html and all blog article pages
 */

/* ── Blog hero ───────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-gradient-start, #ff7e5f) 0%, var(--primary-gradient-end, #00b8a9) 100%);
  color: #fff;
  padding: 110px 0 70px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Article hero ────────────────────────────────────── */
.article-hero {
  background: #1a2a3a;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 0 60px;
}

.breadcrumb {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.article-hero .lead {
  font-size: 1.05rem;
  opacity: 0.93;
  max-width: 660px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.article-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Blog index grid ─────────────────────────────────── */
.blog-section {
  padding: 64px 0 80px;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-decoration: none;
}

.blog-card-image {
  height: 180px;
  background-color: #1a2a3a;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-tag {
  display: inline-block;
  background: #e0f2f1;
  color: var(--accent-teal, #1a9988);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.blog-card-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #999;
}

/* ── Article body ────────────────────────────────────── */
.article-content {
  padding: 48px 0 80px;
  max-width: 860px;
  margin: 0 auto;
}

.article-content .container {
  max-width: 860px;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin: 44px 0 16px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin: 28px 0 10px;
}

.article-content p {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 7px;
  color: #444;
  line-height: 1.7;
}

/* ── TOC ─────────────────────────────────────────────── */
.toc {
  background: #f8f8f8;
  border-left: 4px solid var(--accent-teal, #1a9988);
  padding: 20px 24px;
  margin: 36px 0;
  border-radius: 0 8px 8px 0;
}

.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-teal, #1a9988);
  margin-bottom: 12px;
  font-weight: 700;
  border: none;
  padding: 0;
}

.toc ol { padding-left: 18px; margin: 0; }
.toc li { margin-bottom: 5px; }
.toc a { color: #444; font-size: 0.9rem; text-decoration: none; }
.toc a:hover { color: var(--accent-teal, #1a9988); text-decoration: underline; }

/* ── Info box ────────────────────────────────────────── */
.info-card {
  background: linear-gradient(135deg, #e0f2f1 0%, #f1f8f7 100%);
  border-left: 4px solid var(--accent-teal, #1a9988);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal, #1a9988);
  margin-bottom: 12px;
}

.info-card ul { padding-left: 18px; margin: 0; }
.info-card li { margin-bottom: 5px; color: #444; font-size: 0.92rem; }

/* ── Highlights grid ─────────────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.highlight-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.highlight-card i {
  font-size: 1.8rem;
  color: var(--accent-teal, #1a9988);
  margin-bottom: 10px;
  display: block;
}

.highlight-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.highlight-card p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* ── Season table ────────────────────────────────────── */
.season-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.season-table th {
  background: var(--accent-teal, #1a9988);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.season-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.season-table tr:nth-child(even) td { background: #fafafa; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}

.faq-item h3 {
  font-size: 1rem !important;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
  border: none !important;
  padding: 0 !important;
}

.faq-item p {
  font-size: 0.92rem;
  color: #555;
  margin: 0 !important;
}

/* ── CTA box ─────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--primary-gradient-start, #ff7e5f), var(--primary-gradient-end, #00b8a9));
  color: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}

.cta-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 22px !important;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--accent-teal, #1a9988);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 25px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.9; text-decoration: none; }

/* ── Related articles ────────────────────────────────── */
.related-section {
  background: #f8f9fa;
  padding: 48px 0;
  margin-top: 48px;
}

.related-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 28px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.related-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.related-card-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.related-card-body {
  padding: 14px;
}

.related-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.related-card p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* ── Sources section ─────────────────────────────────── */
.sources-section {
  margin: 32px 0 20px;
  padding: 20px 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ddd;
}

.sources-section h2 {
  font-size: 0.9rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
}

.sources-list {
  padding-left: 18px;
  margin: 0;
}

.sources-list li {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #666;
}

.sources-list a {
  color: var(--accent-teal, #1a9988);
  text-decoration: none;
}

.sources-list a:hover {
  text-decoration: underline;
}
