/**
 * 홈 페이지 - 오렌지-핑크 그라디언트 디자인
 */

.home-page {
  background: #ffffff;
}

.home-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ===========================
   섹션 공통
=========================== */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-title-center {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 32px;
}

.section-title-left {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.section-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 8px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.view-all-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ea580c;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #c2410c;
}

/* ===========================
   히어로 섹션
=========================== */
.hero-section {
  position: relative;
  padding: 64px 16px 80px;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 50%, #faf5ff 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-blob-1 {
  top: 80px;
  left: 40px;
  width: 288px;
  height: 288px;
  background: #fb923c;
}

.hero-blob-2 {
  bottom: 80px;
  right: 40px;
  width: 384px;
  height: 384px;
  background: #f472b6;
}

.hero-content {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title-highlight {
  background: linear-gradient(90deg, #ea580c, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-search-wrap {
  max-width: 672px;
  margin: 0 auto;
}

.hero-search-form {
  position: relative;
}

.hero-search-input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: white;
  outline: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: inherit;
}

.hero-search-input:focus {
  border-color: #fb923c;
}

.hero-search-input::placeholder {
  color: #9ca3af;
}

.hero-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: opacity 0.2s;
}

.hero-search-btn:hover {
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: #d1d5db;
  flex-shrink: 0;
}

/* ===========================
   카테고리 섹션
=========================== */
.category-section {
  padding: 64px 16px;
  background: #ffffff;
}

.category-grid-new {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 8px;
  border-radius: 16px;
  text-decoration: none;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.category-btn:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-btn-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.category-btn:hover .category-btn-icon {
  transform: scale(1.1);
}

/* ===========================
   인기 맛집 리뷰 섹션
=========================== */
.popular-posts-section {
  padding: 64px 16px;
  background: #f9fafb;
}

.popular-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 인기 게시글 카드 */
.popular-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: block;
  transition: box-shadow 0.3s;
}

.popular-post-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.popular-post-card-img {
  width: 100%;
  height: 192px;
  overflow: hidden;
  position: relative;
  background: #f3f4f6;
}

.popular-post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.popular-post-card:hover .popular-post-card-img img {
  transform: scale(1.1);
}

.popular-post-card-body {
  padding: 20px;
}

.popular-post-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.popular-post-tag {
  padding: 4px 12px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.popular-post-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
  line-height: 1.4;
}

.popular-post-card:hover .popular-post-title {
  color: #ea580c;
}

.popular-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6b7280;
}

.popular-post-author {
  font-weight: 500;
}

.popular-post-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.popular-post-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===========================
   추천 맛집 섹션
=========================== */
.recommend-section-new {
  padding: 64px 16px;
  background: #ffffff;
}

.recommend-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 추천 맛집 카드 */
.recommend-card-new {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.3s;
}

.recommend-card-new:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.recommend-card-img {
  width: 100%;
  height: 192px;
  overflow: hidden;
  position: relative;
}

.recommend-card-img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.3s;
}

.recommend-card-new:hover .recommend-card-img-bg {
  transform: scale(1.05);
}

.recommend-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #ea580c;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.recommend-card-body {
  padding: 20px;
}

.recommend-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.recommend-card-new:hover .recommend-card-name {
  color: #ea580c;
}

.recommend-card-addr {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.recommend-card-addr i {
  color: #f97316;
  flex-shrink: 0;
}

/* ===========================
   CTA 섹션
=========================== */
.cta-section {
  padding: 80px 16px;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.cta-content {
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta-btn-primary {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #ea580c;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.cta-btn-primary:hover {
  background: #f9fafb;
}

.cta-btn-secondary {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  border: 2px solid white;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   반응형
=========================== */
@media (max-width: 1024px) {
  .category-grid-new {
    grid-template-columns: repeat(4, 1fr);
  }

  .recommend-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 36px 16px 60px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .category-grid-new {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .category-btn {
    padding: 16px 8px;
  }

  .category-btn-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .popular-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recommend-grid-new {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .section-title-center,
  .section-title-left {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .category-grid-new {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .category-btn {
    padding: 12px 4px;
    font-size: 0.75rem;
  }

  .category-btn-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
}
