/* ========================================
   Index Page Styles - 메인 페이지 전용
   ======================================== */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 60px;
  border-radius: 0 0 32px 32px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 22px;
  opacity: 0.95;
  margin-bottom: 32px;
  color: white;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.blog-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.blog-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 10px 20px;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}

.category-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-box {
  width: 100%;
  padding: 16px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--panel);
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.stat-card {
  background: var(--panel);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: white;
  padding: 60px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 60px;
}

.newsletter h2 {
  color: white;
  margin-bottom: 16px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-size: 18px;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
}

.newsletter-btn {
  padding: 14px 32px;
  background: white;
  color: var(--accent);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: #1a202c;
  color: white;
  padding: 48px 20px 24px;
  margin-top: 80px;
  border-radius: 32px 32px 0 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 2;
}

.footer-section a:hover {
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .stat-number {
    font-size: 36px;
  }
}