/* ===================================
   FLUX KREA BLOG STYLES
   Premium design system for blog pages
   =================================== */

/* === BLOG HERO SECTION === */
.hero {
  background: var(--bg-premium-primary);
  padding: calc(70px + var(--space-premium-4xl)) 0 var(--space-premium-4xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-premium-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-premium-lg);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-premium);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-premium-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-premium-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === BLOG CATEGORIES === */
.blog-categories {
  padding: var(--space-premium-3xl) 0 var(--space-premium-2xl);
  background: var(--bg-premium-secondary);
  border-top: 1px solid var(--border-color);
}

.categories-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-premium-sm);
  flex-wrap: wrap;
}

.category-btn {
  padding: var(--space-premium-md) var(--space-premium-lg);
  background: var(--bg-premium-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-premium-full);
  font-family: var(--font-premium-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-premium-secondary);
  cursor: pointer;
  transition: var(--transition-premium-normal);
  white-space: nowrap;
}

.category-btn:hover {
  transform: translateY(-2px);
  background: rgba(14, 165, 233, 0.05);
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--text-premium-primary);
  box-shadow: var(--shadow-premium-md);
}

.category-btn.active {
  background: var(--gradient-primary);
  color: var(--text-premium-inverse);
  border-color: var(--premium-primary);
  box-shadow: var(--shadow-premium-lg);
}

.category-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium-xl);
}

/* === FEATURED POSTS SECTION === */
.featured-posts {
  padding: var(--space-premium-5xl) 0;
  background: var(--bg-premium-primary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-premium-4xl);
}

.section-title {
  font-family: var(--font-premium-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-premium-primary);
  margin-bottom: var(--space-premium-lg);
  line-height: 1.2;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: var(--space-premium-2xl);
}

.featured-post {
  background: var(--bg-premium-primary);
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-premium-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium-md);
  transition: var(--transition-premium-normal);
  position: relative;
}

.featured-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-premium-normal);
}

.featured-post:hover::before {
  opacity: 1;
}

.featured-post:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium-2xl);
  border-color: rgba(14, 165, 233, 0.2);
}

.enhanced-card {
  /* Apply enhanced card styles to featured posts */
}

.post-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-premium-normal);
}

.featured-post:hover .post-image img {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: var(--space-premium-lg);
  left: var(--space-premium-lg);
  padding: var(--space-premium-xs) var(--space-premium-md);
  background: var(--bg-premium-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-premium-full);
  font-family: var(--font-premium-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-premium-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-content {
  padding: var(--space-premium-2xl);
}

.post-title {
  margin-bottom: var(--space-premium-lg);
}

.post-title a {
  font-family: var(--font-premium-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-premium-primary);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--transition-premium-normal);
}

.post-title a:hover {
  color: var(--premium-primary);
}

.post-excerpt {
  font-family: var(--font-premium-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-premium-secondary);
  margin-bottom: var(--space-premium-xl);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-premium-md);
  font-family: var(--font-premium-body);
  font-size: 0.875rem;
  color: var(--text-premium-tertiary);
}

.post-author,
.post-date,
.post-reading-time {
  font-weight: 500;
}

.post-author {
  color: var(--premium-primary);
}

/* === RECENT POSTS SECTION === */
.recent-posts {
  padding: var(--space-premium-5xl) 0;
  background: var(--bg-premium-secondary);
  position: relative;
}

.recent-posts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-premium-xl);
  position: relative;
  z-index: 2;
}

.post-card {
  background: var(--bg-premium-primary);
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-premium-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium-md);
  transition: var(--transition-premium-normal);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium-xl);
  border-color: rgba(14, 165, 233, 0.2);
}

.post-thumbnail {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-premium-normal);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

.post-info {
  padding: var(--space-premium-xl);
}

.post-category-tag {
  display: inline-block;
  padding: var(--space-premium-xs) var(--space-premium-md);
  background: var(--gradient-primary);
  color: var(--text-premium-inverse);
  border-radius: var(--radius-premium-full);
  font-family: var(--font-premium-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-premium-lg);
}

.post-info .post-title {
  margin-bottom: var(--space-premium-md);
}

.post-info .post-title a {
  font-family: var(--font-premium-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-premium-primary);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--transition-premium-normal);
}

.post-info .post-title a:hover {
  color: var(--premium-primary);
}

.post-summary {
  font-family: var(--font-premium-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-premium-secondary);
  margin-bottom: var(--space-premium-lg);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-premium-md);
  border-top: 1px solid var(--border-color);
  font-family: var(--font-premium-body);
  font-size: 0.875rem;
  color: var(--text-premium-tertiary);
}

.post-date,
.post-reading-time {
  font-weight: 500;
}

/* === NEWSLETTER SIGNUP === */
.newsletter-signup {
  padding: var(--space-premium-5xl) 0;
  background: var(--bg-premium-primary);
}

.newsletter-card {
  background: var(--bg-premium-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-premium-2xl);
  padding: var(--space-premium-4xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-premium-4xl);
  align-items: center;
  box-shadow: var(--shadow-premium-xl);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.newsletter-content h2 {
  font-family: var(--font-premium-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-premium-primary);
  margin-bottom: var(--space-premium-lg);
  line-height: 1.2;
}

.newsletter-content p {
  font-family: var(--font-premium-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-premium-secondary);
  margin-bottom: var(--space-premium-xl);
}

.newsletter-form {
  margin-bottom: var(--space-premium-lg);
}

.form-group {
  display: flex;
  gap: var(--space-premium-md);
  margin-bottom: var(--space-premium-md);
}

.form-input {
  flex: 1;
  padding: var(--space-premium-lg);
  background: var(--bg-premium-primary);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-premium-lg);
  font-family: var(--font-premium-body);
  font-size: 1rem;
  color: var(--text-premium-primary);
  transition: var(--transition-premium-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--premium-primary);
  box-shadow: var(--shadow-premium-glow);
}

.form-input::placeholder {
  color: var(--text-premium-tertiary);
}

.form-note {
  font-family: var(--font-premium-body);
  font-size: 0.875rem;
  color: var(--text-premium-tertiary);
  margin: 0;
  line-height: 1.5;
}

.newsletter-benefits h3 {
  font-family: var(--font-premium-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-premium-primary);
  margin-bottom: var(--space-premium-lg);
}

.newsletter-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.newsletter-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-premium-sm);
  font-family: var(--font-premium-body);
  font-size: 1rem;
  color: var(--text-premium-secondary);
  margin-bottom: var(--space-premium-md);
  line-height: 1.5;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-card {
    grid-template-columns: 1fr;
    gap: var(--space-premium-2xl);
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(70px + var(--space-premium-2xl)) 0 var(--space-premium-2xl);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .categories-nav {
    gap: var(--space-premium-xs);
  }
  
  .category-btn {
    padding: var(--space-premium-sm) var(--space-premium-md);
    font-size: 0.8rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-premium-lg);
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-post .post-content {
    padding: var(--space-premium-xl);
  }
  
  .newsletter-card {
    padding: var(--space-premium-2xl);
  }
  
  .form-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .featured-post .post-content,
  .post-info {
    padding: var(--space-premium-lg);
  }
  
  .newsletter-card {
    padding: var(--space-premium-xl);
  }
}