/* ===========================
   main.css
   집찾GO 메인페이지 전용 스타일
=========================== */

body {
  background:
    radial-gradient(circle at top left, rgba(30, 136, 255, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(23, 212, 179, 0.14), transparent 32%),
    linear-gradient(135deg, #F8FBFF, #EEF7FF);
  color: #172033;
  overflow-x: hidden;
}

.main-page {
  min-height: 100vh;
  padding: 110px 0 32px;
}

/* ===========================
   Hero Section
=========================== */

.hero-section {
  position: relative;
  width: min(1500px, 92%);
  min-height: calc(76vh - 96px);
  margin: 0 auto;
  padding: 42px 52px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  overflow: hidden;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(17, 45, 78, 0.12);
}

.hero-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.48;
  animation: heroFloat 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-bg.one {
  width: 260px;
  height: 260px;
  right: 10%;
  top: 8%;
  background: #1E88FF;
}

.hero-bg.two {
  width: 210px;
  height: 210px;
  left: 8%;
  bottom: 10%;
  background: #17D4B3;
  animation-delay: 1.5s;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-22px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 10px 16px;

  border-radius: 999px;
  background: rgba(30, 136, 255, 0.12);

  color: #1E88FF;
  font-size: 15px;
  font-weight: 900;
}

.hero-content h1 {
  margin-bottom: 14px;

  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: -1.9px;
  font-weight: 900;
  color: #172033;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #1E88FF, #17D4B3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin-bottom: 22px;

  color: #5B6678;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
}

/* ===========================
   AI Search Box
=========================== */

.ai-search-box {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 18px 45px rgba(30, 136, 255, 0.16);
}

.ai-search-box i {
  flex-shrink: 0;
  margin-left: 10px;
  color: #1E88FF;
  font-size: 28px;
}

.ai-search-box input {
  flex: 1;
  min-width: 0;
  height: 62px;

  border: none;
  outline: none;
  background: transparent;

  color: #172033;
  font-size: 18px;
  font-weight: 700;
}

.ai-search-box input::placeholder {
  color: #94A3B8;
  font-weight: 600;
}

.ai-search-box button {
  flex-shrink: 0;
  height: 62px;
  padding: 0 34px;

  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, #1E88FF, #17D4B3);

  color: #FFFFFF;
  font-size: 17px;
  font-weight: 900;

  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 12px 28px rgba(30, 136, 255, 0.2);
}

.ai-search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(30, 136, 255, 0.28);
}

/* ===========================
   Quick Tags
=========================== */

.quick-tags {
  margin-top: 14px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-tags button {
  padding: 12px 18px;

  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);

  color: #334155;
  font-size: 15px;
  font-weight: 800;

  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 8px 22px rgba(17, 45, 78, 0.08);
}

.quick-tags button:hover {
  color: #FFFFFF;
  background: #1E88FF;
  transform: translateY(-2px);
}

/* ===========================
   Feature Section
=========================== */

.feature-section {
  width: min(1500px, 92%);
  margin: 24px auto 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feature-link article {
  position: relative;
  overflow: hidden;

  min-height: 170px;
  height: 100%;
  padding: 18px;

  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(17, 45, 78, 0.08);

  cursor: pointer;
  transition: 0.28s ease;
}

.feature-link article::before {
  content: "";
  position: absolute;
  top: -45px;
  right: -45px;

  width: 120px;
  height: 120px;
  border-radius: 50%;

  background: linear-gradient(
    135deg,
    rgba(30, 136, 255, 0.14),
    rgba(23, 212, 179, 0.18)
  );

  transition: 0.35s ease;
}

.feature-link:hover article {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(17, 45, 78, 0.12);
}

.feature-link:hover article::before {
  transform: scale(1.25);
}

.feature-link:focus-visible article {
  outline: 3px solid rgba(30, 136, 255, 0.35);
  outline-offset: 4px;
}

.feature-icon {
  position: relative;
  z-index: 1;

  width: 54px;
  height: 54px;
  margin-bottom: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(30, 136, 255, 0.13),
    rgba(23, 212, 179, 0.16)
  );

  box-shadow: 0 12px 26px rgba(30, 136, 255, 0.14);
  transition: 0.3s ease;
}

.feature-icon i {
  color: #1E88FF;
  font-size: 30px;
  transition: 0.3s ease;
}

.feature-link:hover .feature-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 36px rgba(30, 136, 255, 0.22);
}

.feature-link:hover .feature-icon i {
  color: #17D4B3;
}

.feature-section h3,
.feature-section p {
  position: relative;
  z-index: 1;
}

.feature-section h3 {
  margin: 0 0 8px;

  color: #172033;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.feature-section p {
  margin: 0;

  color: #64748B;
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
}

/* ===========================
   Mobile
=========================== */

@media (max-width: 768px) {
  .main-header {
    height: 64px;
  }

  .menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f1f6ff;
  }

  .menu-btn span {
    width: 20px;
    background: #172033;
  }

  .top-nav {
    top: 76px;
    left: 0;
    right: auto;
    width: 100%;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 50px rgba(17, 45, 78, .14);
    display: none;
    flex-direction: column;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .top-nav.active {
    display: flex;
    transform: none;
  }

  .top-nav a {
    width: 100%;
    color: #243044;
    justify-content: center;
  }

  .top-nav a:hover {
    color: #1E88FF;
    background: rgba(30, 136, 255, .1);
    transform: translateY(-2px);
  }

  .main-page {
    min-height: 100vh;
    min-height: 100svh;
    padding: 84px 0 12px;
    padding: clamp(84px, 9svh, 88px) 0 clamp(12px, 2svh, 24px);

    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2svh, 20px);
  }

  .hero-section {
    flex: 1 0 auto;
    width: 92%;
    min-height: auto;
    margin: 0 auto;
    padding: clamp(28px, 5svh, 48px) 18px;
    border-radius: 28px;
  }

  .hero-bg.one {
    width: 180px;
    height: 180px;
    right: -40px;
    top: 20px;
  }

  .hero-bg.two {
    width: 160px;
    height: 160px;
    left: -45px;
    bottom: 10px;
  }

  .hero-badge {
    display: none;
  }

  .hero-content h1 {
    margin-bottom: 12px;

    font-size: 29px;
    line-height: 1.18;
    letter-spacing: -1.5px;
  }

  .hero-desc {
    margin-bottom: 18px;

    font-size: 13.5px;
    line-height: 1.5;
  }

  .ai-search-box {
    padding: 9px;
    border-radius: 22px;
  }

  .ai-search-box i {
    display: none;
  }

  .ai-search-box input {
    height: 52px;
    font-size: 14px;
  }

  .ai-search-box button {
    height: 52px;
    padding: 0 16px;

    border-radius: 18px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .quick-tags {
    margin-top: 14px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .quick-tags button {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
    word-break: keep-all;
  }

  .feature-section {
    flex: 0 0 auto;
    width: 92%;
    margin: 0 auto;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .feature-link article {
    min-height: 138px;
    padding: 14px;
    border-radius: 20px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .feature-icon i {
    font-size: 23px;
  }

  .feature-section h3 {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .feature-section p {
    font-size: 11.5px;
    line-height: 1.45;
  }
}

/* ===========================
   Small Mobile
=========================== */

@media (max-width: 420px) {
  .feature-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-inline: 16px;
  }

  .hero-content h1 {
    font-size: 27px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .ai-search-box input {
    height: 48px;
  }

  .ai-search-box button {
    padding: 0 12px;
  }

  .ai-search-box button {
    height: 48px;
    padding: 0 13px;
    font-size: 12.5px;
  }

  .quick-tags button {
    font-size: 12.5px;
  }

  .feature-link article {
    min-height: 130px;
  }
}

/* Conversational AI entry */
.hero-badge i { margin-right: 5px; font-size: 18px; vertical-align: -2px; }
.ai-search-box button i { margin: 0 0 0 5px; color: inherit; font-size: 18px; vertical-align: -2px; }
