/* ============================================
   LANDING.CSS - The Marketing Layer
   ============================================
   Styles specific to index.html (landing page):
   - Hero section
   - Feature grids
   - Blog listing section
   - Marketing-specific animations
   ============================================ */

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.hero-text {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  width: 100%;
}

.hero-text h2 {
  font-size: 2.5rem;
}

/* Intro Section */
.intro {
  padding: 2rem;
  text-align: center;
}

/* Feature Grid / Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card h3 {
  padding: 1rem;
  font-size: 1.2rem;
  color: #2c3e50;
}

.card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #555;
}

/* Blog Section (on landing page) */
.blog-section {
  padding: 4rem 2rem;
  background: #fdfdfd;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Category Filter */
.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.category-btn {
  padding: 0.5rem 1.25rem;
  background: white;
  border: 2px solid #e0e0e0;
  color: #2c3e50;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-btn:hover {
  border-color: #2c3e50;
  background: #f8f9fa;
}

.category-btn.active {
  background: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e6f0ff;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e6f0ff;
  color: #2c3e50;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-date {
  font-size: 0.85rem;
  color: #888;
}

.blog-card-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-read-more {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.blog-read-more:hover {
  color: #3498db;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #888;
  font-size: 1.1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #2c3e50;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: white;
  border: 2px solid #e0e0e0;
  color: #2c3e50;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  border-color: #2c3e50;
  background: #f8f9fa;
}

.pagination-number.active {
  background: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.pagination-ellipsis {
  padding: 0.5rem;
  color: #888;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Mobile Tweaks for Landing Page */
@media (max-width: 600px) {
  .hero-text h2 {
    font-size: 1.5rem;
  }

  .card img {
    aspect-ratio: 4 / 3;
  }

  .blog-section {
    padding: 2rem 1rem;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-categories {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .pagination-number {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}
