/* ═══════════════════════════════════════════════════════════════
   OohSleep Blog Page Styles
   延续landing.css设计风格
   ═══════════════════════════════════════════════════════════════ */

/* Blog Page Layout */
.blog-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-tag-header {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200, 233, 114, 0.1);
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #c8e972;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.blog-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Article */
.featured-article {
  margin-bottom: 48px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.featured-card:hover {
  border-color: rgba(200, 233, 114, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.featured-image {
  position: relative;
  height: 360px;
  overflow: hidden;
}

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

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

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #c8e972 0%, #72c8e9 100%);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.featured-content {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-content p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

/* Article Category Tag */
.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #c8e972;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.read-time svg {
  width: 16px;
  height: 16px;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: #c8e972;
}

/* Blog Categories */
.blog-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.category-btn.active {
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.15) 0%, rgba(114, 200, 233, 0.1) 100%);
  border-color: rgba(200, 233, 114, 0.3);
  color: #c8e972;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

/* Article Card */
.article-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: rgba(200, 233, 114, 0.3);
  transform: translateY(-4px);
}

.article-card a {
  text-decoration: none;
  display: block;
}

.article-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

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

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

/* Placeholder Images */
.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.1) 0%, rgba(114, 200, 233, 0.05) 100%);
}

.placeholder-image svg {
  width: 48px;
  height: 48px;
  color: rgba(200, 233, 114, 0.5);
}

.placeholder-image.science {
  background: linear-gradient(135deg, rgba(114, 200, 233, 0.15) 0%, rgba(200, 233, 114, 0.05) 100%);
}

.placeholder-image.science svg {
  color: rgba(114, 200, 233, 0.6);
}

.placeholder-image.health {
  background: linear-gradient(135deg, rgba(255, 159, 122, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.placeholder-image.health svg {
  color: rgba(255, 159, 122, 0.6);
}

.placeholder-image.lifestyle {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.placeholder-image.lifestyle svg {
  color: rgba(167, 139, 250, 0.6);
}

.placeholder-image.environment {
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.15) 0%, rgba(52, 211, 153, 0.05) 100%);
}

.placeholder-image.environment svg {
  color: rgba(200, 233, 114, 0.6);
}

.article-content {
  padding: 24px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.article-content .read-time {
  font-size: 13px;
}

/* Blog CTA */
.blog-cta {
  margin-top: 60px;
}

.cta-box {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(200, 233, 114, 0.08) 0%, rgba(114, 200, 233, 0.04) 100%);
  border: 1px solid rgba(200, 233, 114, 0.2);
  border-radius: 24px;
}

.cta-box .cta-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #c8e972 0%, #72c8e9 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-box .cta-icon svg {
  width: 36px;
  height: 36px;
  color: #0a0a0a;
}

.cta-box .cta-text {
  flex: 1;
}

.cta-box h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-box p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .featured-image {
    height: 280px;
  }
  
  .featured-content {
    padding: 32px;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-page {
    padding-top: 100px;
  }
  
  .blog-header h1 {
    font-size: 32px;
  }
  
  .featured-content h2 {
    font-size: 22px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .category-btn {
    flex-shrink: 0;
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  .cta-box .btn {
    width: 100%;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  animation: fadeIn 0.4s ease;
}
