/* Blog page - additional styles
 * Extracted from inline <style> in blog.html for CSP compliance (no 'unsafe-inline').
 * Loaded after styles.css; relies on its CSS variables (--color-burgundy etc.). */
/* Blog page - additional styles
 * Extracted from inline <style> in blog.html for CSP compliance (no 'unsafe-inline').
 * Loaded after styles.css; relies on its CSS variables (--color-burgundy etc.). */

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.blog-header h1 {
  font-family: Georgia, serif;
  color: var(--color-burgundy);
  font-size: 42px;
  margin-bottom: 12px;
}

.blog-header p {
  color: var(--color-text-light);
  font-size: 18px;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid #e0d6cc;
  background: white;
  color: var(--color-text);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 15px;
}

.filter-btn:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.filter-btn.active {
  background: var(--color-burgundy, #722f37);
  color: white;
  border-color: var(--color-burgundy, #722f37);
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}

.blog-card {
  width: 350px;
  max-width: 100%;
  background: white;
  border: 1px solid #e0d6cc;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(114, 47, 55, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f0eb 0%, #e0d6cc 100%);
}

.blog-card-content {
  padding: 24px;
}

.blog-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: Georgia, serif;
  color: var(--color-burgundy);
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============ POST MODAL ============ */
.post-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.post-modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.post-modal {
  background: var(--color-cream, #fdf8f3);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  margin: auto;
}
.post-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(114, 47, 55, 0.1);
  color: var(--color-burgundy, #722f37);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.post-modal-close:hover {
  background: rgba(114, 47, 55, 0.2);
}
.post-modal-body {
  padding: 48px 40px 40px;
}
.post-modal-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gold, #c9a962);
  margin-bottom: 16px;
  font-weight: 500;
}
.post-modal-title {
  font-family: Georgia, serif;
  color: var(--color-burgundy, #722f37);
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-modal-meta {
  color: var(--color-text-light, #5d5650);
  font-size: 14px;
  margin-bottom: 32px;
}
.post-modal-image {
  display: none;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}
.post-modal-video {
  display: none;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.post-modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.post-modal-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text, #3d3630);
}
.post-modal-content p {
  margin-bottom: 1.4em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-posts {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-light);
}
.no-posts h2 {
  color: var(--color-burgundy, #722f37);
  font-family: Georgia, serif;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 32px;
  }
  .blog-grid {
    flex-direction: column;
    align-items: center;
  }
  .post-modal-body {
    padding: 40px 20px 24px;
  }
  .post-modal-title {
    font-size: 26px;
  }
  .post-modal-overlay {
    padding: 20px 10px;
  }
}

.hidden-admin-link-fixed {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #722f37;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.3;
}
.blog-privacy-bar {
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
  color: #7a6e65;
  background: #f5efe9;
  border-top: 1px solid #e8ddd5;
}
.blog-privacy-bar p {
  margin: 0;
}
.blog-privacy-bar a {
  color: #722f37;
  text-decoration: none;
}
.blog-privacy-bar a:hover {
  text-decoration: underline;
}
.developer-credit-bar {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #9e9890;
  background: #fdf8f3;
}
.developer-credit-bar p {
  margin: 0;
}
.developer-credit-bar a {
  color: #722f37;
  text-decoration: none;
}
