/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #050505 25%,
    #000000 50%,
    #050505 75%,
    #000000 100%
  );
  position: relative;
  overflow: hidden;
  padding: 150px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.blog-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="40" height="40" patternUnits="userSpaceOnUse"><polygon points="20,5 35,15 35,25 20,35 5,25 5,15" fill="none" stroke="rgba(0,255,255,0.03)" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(8, 145, 178, 0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  animation: heroGlow 8s ease-in-out infinite;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
}

.blog-hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg,
    #10b981 0%,
    #059669 25%,
    #0891b2 50%,
    #0ea5e9 75%,
    #06b6d4 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.blog-hero-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  border-radius: 2px;
  animation: titleUnderline 2s ease-in-out infinite;
}

.blog-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Search */
.blog-search-container {
  max-width: 500px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 15px 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-box:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.search-icon {
  color: rgba(255, 255, 255, 0.6);
  margin-right: 15px;
  font-size: 1.1rem;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  outline: none;
  padding: 5px 0;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn {
  background: linear-gradient(135deg, #10b981, #0891b2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Blog Filter Section */
.blog-filter-section {
  background: rgba(0, 0, 0, 0.8);
  padding: 30px 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  position: sticky;
  top: 80px;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #10b981, #0891b2);
  border-color: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Blog Posts Section */
.blog-posts-section {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #050505 25%,
    #000000 50%,
    #050505 75%,
    #000000 100%
  );
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.blog-posts-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(16, 185, 129, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(8, 145, 178, 0.02) 0%,
      transparent 50%
    );
  z-index: 1;
}

.blog-posts-section .container {
  position: relative;
  z-index: 2;
}

.blog-post {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.blog-post.hidden {
  opacity: 0;
  transform: translateY(20px);
  height: 0;
  margin: 0;
  overflow: hidden;
}

.blog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.05) 0%,
    rgba(8, 145, 178, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.blog-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  z-index: 2;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.2);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #10b981 0%, #0891b2 50%, #06b6d4 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  z-index: 3;
}

.blog-card:hover .blog-category {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 3;
}

.blog-card:hover .blog-date {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
}

.blog-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
  position: relative;
}

.blog-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3 {
  background: linear-gradient(135deg, #10b981 0%, #0891b2 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-read-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.blog-read-more:hover {
  color: #0891b2;
  transform: translateX(5px);
}

.blog-read-more i {
  transition: transform 0.3s ease;
}

.blog-read-more:hover i {
  transform: translateX(3px);
}

/* Load More Button */
.load-more-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.load-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.load-more-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(8, 145, 178, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.load-more-btn:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(16, 185, 129, 0.6);
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #0891b2 50%, #06b6d4 100%);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3),
    0 0 30px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.load-more-btn:hover::before {
  left: 100%;
}

.load-more-btn:hover::after {
  opacity: 1;
}

.load-more-btn:hover i {
  transform: translateY(3px);
}

.load-more-btn i {
  transition: all 0.3s ease;
  margin-left: 8px;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  padding: 80px 0;
  position: relative;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(16, 185, 129, 0.05) 0%,
    transparent 70%
  );
  z-index: 1;
}

.newsletter-content {
  position: relative;
  z-index: 2;
}

.newsletter-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #0891b2 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.input-group {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.input-group:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  padding: 15px 20px;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  background: linear-gradient(135deg, #10b981, #0891b2);
  border: none;
  color: white;
  padding: 15px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.newsletter-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.newsletter-note i {
  color: #10b981;
}

/* Animations */
@keyframes heroGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

@keyframes titleUnderline {
  0%,
  100% {
    width: 100px;
    opacity: 0.5;
  }
  50% {
    width: 150px;
    opacity: 1;
  }
}

/* Hero Animation Classes */
.blog-hero-content.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.blog-hero-content.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.blog-search-container.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out 0.3s;
}

.blog-search-container.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero {
    padding: 80px 0 100px;
    min-height: 50vh;
  }

  .blog-hero-title {
    font-size: 2.5rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .search-box {
    padding: 12px 20px;
  }

  .search-input {
    font-size: 0.9rem;
  }

  .blog-filters {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .blog-posts-section {
    padding: 60px 0;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-content h2 {
    font-size: 1.2rem;
  }

  .blog-image {
    height: 200px;
  }

  .load-more-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .newsletter-section {
    padding: 60px 0;
  }

  .newsletter-title {
    font-size: 2rem;
  }

  .newsletter-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .input-group {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
    gap: 15px;
  }

  .newsletter-input {
    width: 100% !important;
    padding: 12px 15px;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05);
  }

  .newsletter-btn {
    padding: 12px 25px;
    border-radius: 10px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 100px 0 40px;
  }

  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 200px;
  }

  .newsletter-form {
    margin: 0 auto 1.5rem;
  }
}
