/* ===========================================
   BLOG PAGE STYLES
   Modern Dijital Tasarım
   =========================================== */

/* Hero Section */
.hero-blog {
  padding: 150px 0 100px;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero-blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(114, 9, 183, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  color: var(--bg-dark);
  overflow: hidden;
}

.hero-wave svg {
  width: 100%;
  height: 100px;
}

/* Blog Section */
.blog-section {
  padding: 100px 0;
  background: var(--bg-dark);
  min-height: 60vh;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 80px 20px;
}

.loader {
  width: 60px;
  height: 60px;
  margin: 0 auto 30px;
  border: 5px solid rgba(0, 217, 255, 0.2);
  border-top-color: var(--text-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 100px 20px;
  color: var(--text-secondary);
}

.empty-state svg {
  margin-bottom: 30px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 16px;
  line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

/* Blog Card */
.blog-card {
  background: var(--bg-glass);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: var(--glow-cyan);
}

.blog-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--bg-dark);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: var(--gradient-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.blog-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--text-secondary);
}

.blog-date::before {
  content: '📅 ';
  margin-right: 5px;
}

.blog-author::before {
  content: '✍️ ';
  margin-right: 5px;
}

.blog-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
}

.blog-read-more svg {
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  gap: 12px;
  color: var(--text-primary);
}

.blog-read-more:hover svg {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 480px) {
  .hero-blog {
    padding: 120px 0 80px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-title {
    font-size: 20px;
  }
  
  .blog-excerpt {
    -webkit-line-clamp: 2;
  }
}

