/*
Theme Name: GUIDE HIGHSSO
Theme URI: https://guide.highsso.com
Author: HIGHSSO
Description: Custom evergreen guide theme for GUIDE HIGHSSO.
Version: 0.1
Text Domain: guide-highsso
*/

:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.guide-search {
  display: flex;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.guide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 16px;
  font-size: 16px;
  background: transparent;
}

.guide-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.guide-search button:hover {
  background: var(--primary-dark);
}

.home-section {
  padding: 44px 0;
}

.home-section h2 {
  margin: 0 0 22px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.guide-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.guide-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-card h3 {
  margin: 18px 18px 8px;
  font-size: 20px;
  line-height: 1.35;
}

.guide-card p {
  margin: 0 18px 20px;
  color: var(--muted);
  font-size: 15px;
}

.category-section {
  background: #fff;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.category-card strong {
  font-size: 18px;
}

.category-card span {
  color: var(--muted);
  font-size: 14px;
}

.recent-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.recent-item + .recent-item {
  border-top: 1px solid var(--line);
}

.recent-item a {
  display: flex;
  gap: 20px;
  padding: 18px 20px;
  align-items: center;
}

.recent-item span {
  flex: 0 0 92px;
  color: var(--muted);
  font-size: 14px;
}

.recent-item strong {
  font-size: 16px;
}

@media (max-width: 860px) {
  .hero {
    padding: 64px 0 44px;
  }

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

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

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 22px, 1120px);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .guide-search {
    padding: 6px;
  }

  .guide-search input {
    padding: 13px 12px;
  }

  .guide-search button {
    padding: 0 16px;
  }

  .guide-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 32px 0;
  }

  .home-section h2 {
    font-size: 24px;
  }

  .recent-item a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .recent-item span {
    flex: none;
  }
}

