/* ==========================================================================
   PRESIBO BLOG STYLESHEET
   ========================================================================== */

/* --- Blog General Layout --- */
.blog-hero {
  padding: 140px 5% 60px;
  background: radial-gradient(circle at 10% 20%, rgba(13, 122, 107, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(232, 83, 58, 0.03) 0%, transparent 50%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4vw, 54px);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.15;
}

.blog-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
}

.blog-hero p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* --- Category Filters --- */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink-mid);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 122, 107, 0.2);
}

/* --- Featured Post Block --- */
.featured-post-container {
  max-width: 1200px;
  margin: -30px auto 60px;
  padding: 0 5%;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.featured-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-img-area {
  position: relative;
  background: linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-img-area::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.featured-img-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 700;
  padding: 40px;
}

.featured-info-area {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 500;
}

.post-tag {
  background: var(--teal-pale);
  color: var(--teal);
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.featured-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-title:hover {
  color: var(--teal);
}

.featured-excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s, color 0.2s;
}

.read-more-btn:hover {
  color: var(--teal-light);
  gap: 12px;
}

/* --- Regular Post Grid --- */
.blog-grid-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 5%;
}

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

.post-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.post-img-area {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.post-img-area::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12, 27, 42, 0.1);
  z-index: 1;
}

.post-img-text {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  padding: 20px;
  z-index: 2;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.post-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card-title:hover {
  color: var(--teal);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Gradient Variations for Cards --- */
.bg-gradient-1 { background: linear-gradient(135deg, #0d7a6b 0%, #0c1b2a 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #e8533a 0%, #822212 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #c9922a 0%, #684605 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #2a3f52 0%, #0c1b2a 100%); }
.bg-gradient-5 { background: linear-gradient(135deg, #12a08c 0%, #064b41 100%); }

/* --- Single Post Detail Styles --- */
.post-header {
  padding: 160px 5% 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.post-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-header-inner h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4.5vw, 48px);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 24px;
}

.post-header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.post-content-container {
  max-width: 800px;
  margin: 48px auto 80px;
  padding: 0 5%;
}

.post-featured-graphic {
  width: 100%;
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-mid);
}

.post-body p {
  margin-bottom: 24px;
}

.post-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  color: var(--ink);
  margin: 40px 0 20px;
  line-height: 1.3;
}

.post-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--ink);
  margin: 32px 0 16px;
  line-height: 1.3;
}

.post-body ul, .post-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 12px;
}

.post-body blockquote {
  border-left: 4px solid var(--teal);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
}

/* --- Social Share & Footer --- */
.post-footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mid);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}

.share-btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* --- Back Link --- */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s, gap 0.2s;
}

.back-to-blog:hover {
  color: var(--teal);
  gap: 12px;
}

/* --- Media Queries --- */
@media (max-width: 900px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-img-area {
    min-height: 240px;
  }
  .featured-info-area {
    padding: 32px;
  }
}

@media (max-width: 600px) {
  .blog-hero {
    padding: 120px 5% 40px;
  }
  .featured-post-container {
    margin-top: -10px;
  }
  .post-header {
    padding: 120px 5% 32px;
  }
  .post-featured-graphic {
    height: 240px;
    padding: 20px;
  }
}
