/* ===================================
   BLOG STYLING FOR BEAUTIFUL JEKYLL
   Peach & Coral Theme
   ================================== */

/* Blog Index Page Styling */
.blog-header {
  text-align: center;
  background: #FEF8F7;
  color: #030303;
  padding: 2.5rem 2rem;
  margin: 0 auto 3rem auto;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(234, 97, 92, 0.15);
  max-width: 600px;
  border: 2px solid #fad1c5;
  position: relative;
}

.blog-header::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #EA615C, #fad1c5, #FEF8F7, #EA615C);
  border-radius: 28px;
  z-index: -1;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #EA615C, #004aad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-header p {
  font-size: 1.2rem;
  color: #030303;
  margin-bottom: 0;
  opacity: 0.8;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background: #FEF8F7;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(234, 97, 92, 0.1);
  transition: all 0.3s ease;
  border: 2px solid #fad1c5;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #EA615C, #fad1c5, #EA615C);
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(234, 97, 92, 0.2);
  border-color: #EA615C;
}

.post-title {
  color: #030303;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-title:hover {
  color: #004aad;
  text-decoration: none;
}

.post-subtitle {
  color: #EA615C;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  font-style: italic;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #030303;
  font-size: 0.9rem;
  opacity: 0.7;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  background: linear-gradient(45deg, #EA615C, #fad1c5);
  color: #030303;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: lowercase;
  box-shadow: 0 2px 8px rgba(234, 97, 92, 0.3);
  border: 1px solid rgba(234, 97, 92, 0.2);
}

.post-excerpt {
  color: #030303;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EA615C;
  color: #FEF8F7;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 97, 92, 0.3);
  border: 2px solid #EA615C;
}

.read-more-btn:hover {
  background: #FEF8F7;
  color: #EA615C;
  text-decoration: none;
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(234, 97, 92, 0.4);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #FEF8F7;
  border: 2px solid #fad1c5;
  border-radius: 20px;
  margin-top: 2rem;
}

.empty-state h4 {
  color: #030303;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #030303;
  font-size: 1.1rem;
  opacity: 0.8;
}

.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0 0 0;
  padding: 1rem;
  background: rgba(250, 209, 197, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 97, 92, 0.2);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #EA615C;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #030303;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* ===================================
   INDIVIDUAL BLOG POST STYLING
   ================================== */

/* Hero image styling */
.hero-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(234, 97, 92, 0.1), rgba(250, 209, 197, 0.2));
  border-radius: 20px;
  margin: 2rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(234, 97, 92, 0.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

/* Floating image cards */
.image-card {
  background: #FEF8F7;
  border: 2px solid #fad1c5;
  border-radius: 15px;
  padding: 1rem;
  margin: 2rem 0;
  box-shadow: 0 10px 25px rgba(234, 97, 92, 0.1);
  transition: all 0.3s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(234, 97, 92, 0.15);
}

.image-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.image-caption {
  color: #030303;
  font-style: italic;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  padding: 0.5rem;
  background: rgba(250, 209, 197, 0.3);
  border-radius: 8px;
  border-left: 4px solid #EA615C;
}

/* Side-by-side images */
.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-grid-item {
  background: #FEF8F7;
  border: 2px solid #fad1c5;
  border-radius: 15px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.image-grid-item:hover {
  transform: scale(1.02);
  border-color: #EA615C;
}

.image-grid-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

/* Inline images */
.inline-image {
  float: right;
  width: 300px;
  margin: 0 0 1rem 2rem;
  background: #FEF8F7;
  border: 2px solid #fad1c5;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(234, 97, 92, 0.1);
}

.inline-image img {
  width: 100%;
  border-radius: 10px;
}

.inline-image.left {
  float: left;
  margin: 0 2rem 1rem 0;
}

/* Full-width showcase */
.showcase-image {
  margin: 3rem -2rem;
  background: linear-gradient(45deg, #EA615C, #fad1c5);
  padding: 3px;
  border-radius: 20px;
}

.showcase-image img {
  width: 100%;
  border-radius: 17px;
  display: block;
}

/* Enhanced content styling */
.blog-content {
  line-height: 1.8;
  color: #030303;
}

.blog-content h1, 
.blog-content h2, 
.blog-content h3 {
  color: #EA615C;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content h2 {
  border-left: 4px solid #EA615C;
  padding-left: 1rem;
  background: rgba(250, 209, 197, 0.1);
  padding: 0.5rem 0 0.5rem 1rem;
  border-radius: 0 8px 8px 0;
}

.blog-content blockquote {
  border-left: 4px solid #EA615C;
  background: rgba(250, 209, 197, 0.1);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.blog-content code {
  background: rgba(250, 209, 197, 0.3);
  color: #EA615C;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
}

.blog-content pre {
  background: #FEF8F7;
  border: 2px solid #fad1c5;
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-content a {
  color: #004aad;
  text-decoration: underline;
  text-decoration-color: rgba(0, 74, 173, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.image-card.small img {
  max-height: 200px;
  object-fit: cover;
}

.image-card.medium img {
  max-height: 300px;
  object-fit: cover;
}

.blog-content a:hover {
  color: #EA615C;
  text-decoration-color: #EA615C;
}

/* Call-out boxes */
.callout {
  background: #FEF8F7;
  border: 2px solid #fad1c5;
  border-radius: 15px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.callout.warning {
  border-color: #EA615C;
  background: rgba(234, 97, 92, 0.05);
}

.callout.info {
  border-color: #004aad;
  background: rgba(0, 74, 173, 0.05);
}

.callout::before {
  content: '💡';
  position: absolute;
  top: -10px;
  left: 20px;
  background: #FEF8F7;
  padding: 0 8px;
  font-size: 1.2rem;
}

.callout.warning::before {
  content: '⚠️';
}

.callout.info::before {
  content: 'ℹ️';
}

/* Responsive design */
@media (max-width: 768px) {
  .posts-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-header {
    margin: 0 1rem 2rem 1rem;
    padding: 2rem 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .inline-image {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
  
  .inline-image.left {
    float: none;
    margin: 1rem 0;
  }
  
  .showcase-image {
    margin: 2rem -1rem;
  }
  
  .hero-image {
    height: 250px;
  }
}