/*
Theme Name: Airbnb Hub
Theme URI: https://llaaccop2word.mycafe24.com
Description: Blog and web app hub child theme for GeneratePress.
Author: llaaccop2word
Template: generatepress
Version: 1.0.0
Text Domain: airbnb-hub
*/

:root {
  --hub-primary: #ff385c;
  --hub-primary-active: #e00b41;
  --hub-primary-soft: #ffd1da;
  --hub-ink: #222222;
  --hub-body: #3f3f3f;
  --hub-muted: #6a6a6a;
  --hub-hairline: #dddddd;
  --hub-hairline-soft: #ebebeb;
  --hub-canvas: #ffffff;
  --hub-surface-soft: #f7f7f7;
  --hub-surface-strong: #f2f2f2;
  --hub-radius-sm: 8px;
  --hub-radius-md: 14px;
  --hub-radius-lg: 20px;
  --hub-radius-xl: 32px;
  --hub-radius-full: 9999px;
  --hub-shadow: 0 0 0 1px rgb(0 0 0 / 2%), 0 2px 6px rgb(0 0 0 / 4%), 0 4px 8px rgb(0 0 0 / 10%);
  --hub-container: 1200px;
  --hub-gutter: 40px;
  --hub-section: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--hub-canvas);
  color: var(--hub-body);
  font-family: Inter, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.admin-bar .hub-header {
  top: 32px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgb(255 56 92 / 35%);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub-container {
  width: min(calc(100% - (var(--hub-gutter) * 2)), var(--hub-container));
  margin-inline: auto;
}

.hub-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--hub-hairline-soft);
  backdrop-filter: blur(16px);
}

.hub-header__inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--hub-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hub-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 46% 54% / 54% 46% 54% 46%;
  background: var(--hub-primary);
  color: var(--hub-canvas);
}

.hub-brand__mark svg,
.hub-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-tabs {
  display: inline-flex;
  align-items: stretch;
  min-height: 56px;
  padding: 4px;
  border: 1px solid var(--hub-hairline);
  border-radius: var(--hub-radius-full);
  background: var(--hub-canvas);
  box-shadow: var(--hub-shadow);
}

.hub-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 138px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--hub-radius-full);
  color: var(--hub-muted);
  font-size: 16px;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.hub-tab::after {
  position: absolute;
  right: 26px;
  bottom: 5px;
  left: 26px;
  height: 2px;
  border-radius: var(--hub-radius-full);
  background: transparent;
  content: "";
}

.hub-tab:hover {
  background: var(--hub-surface-soft);
  color: var(--hub-ink);
}

.hub-tab:active {
  transform: scale(0.98);
}

.hub-tab[aria-current="page"],
.hub-tab.is-active {
  background: var(--hub-surface-soft);
  color: var(--hub-ink);
}

.hub-tab[aria-current="page"]::after,
.hub-tab.is-active::after {
  background: var(--hub-primary);
}

.hub-header__actions {
  display: flex;
  justify-content: flex-end;
}

.hub-write-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--hub-radius-full);
  background: var(--hub-ink);
  color: var(--hub-canvas);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hub-write-button:hover {
  background: var(--hub-primary);
}

.hub-write-button:active {
  transform: scale(0.98);
}

.hub-main {
  min-height: calc(100vh - 224px);
}

.hub-hero {
  padding: 72px 0 56px;
}

.hub-hero__eyebrow,
.hub-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--hub-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-hero__title {
  max-width: 820px;
  margin: 0;
  color: var(--hub-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: 0;
}

.hub-hero__copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--hub-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hub-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  min-height: 64px;
  margin-top: 36px;
  padding: 8px 8px 8px 26px;
  border: 1px solid var(--hub-hairline);
  border-radius: var(--hub-radius-full);
  background: var(--hub-canvas);
  box-shadow: var(--hub-shadow);
}

.hub-hero__search-label {
  flex: 1;
  color: var(--hub-muted);
  font-size: 14px;
}

.hub-hero__search-label strong {
  display: block;
  margin-bottom: 2px;
  color: var(--hub-ink);
  font-size: 14px;
  font-weight: 600;
}

.hub-search-orb {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--hub-radius-full);
  background: var(--hub-primary);
  color: var(--hub-canvas);
}

.hub-section {
  padding: var(--hub-section) 0;
}

.hub-section--soft {
  background: var(--hub-surface-soft);
}

.hub-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.hub-section__title {
  margin: 0;
  color: var(--hub-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hub-section__copy {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--hub-muted);
  font-size: 16px;
}

.hub-section__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--hub-ink);
  border-radius: var(--hub-radius-full);
  color: var(--hub-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hub-section__link:hover {
  background: var(--hub-ink);
  color: var(--hub-canvas);
}

.hub-category-strip {
  display: flex;
  gap: 4px;
  margin: -10px 0 32px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--hub-hairline-soft);
  border-radius: var(--hub-radius-xl);
  background: var(--hub-canvas);
  scrollbar-width: none;
}

.hub-category-strip::-webkit-scrollbar {
  display: none;
}

.hub-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-bottom: 2px solid transparent;
  color: var(--hub-muted);
  font-size: 14px;
  font-weight: 500;
}

.hub-category:hover,
.hub-category.is-active {
  border-bottom-color: var(--hub-primary);
  color: var(--hub-ink);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}

.hub-card {
  min-width: 0;
  border-radius: var(--hub-radius-md);
  background: var(--hub-canvas);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hub-shadow);
}

.hub-card__link {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.hub-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: var(--hub-radius-md);
  background:
    radial-gradient(circle at 20% 25%, rgb(255 255 255 / 54%), transparent 26%),
    linear-gradient(135deg, #fff0f3 0%, #ffd4dc 47%, #ff8ca1 100%);
  color: var(--hub-primary-active);
}

.hub-card--app .hub-card__media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 78% 20%, rgb(255 255 255 / 60%), transparent 24%),
    linear-gradient(145deg, var(--hub-surface-soft) 0%, var(--hub-surface-strong) 50%, var(--hub-primary-soft) 100%);
  color: var(--hub-ink);
}

.hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-card__symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--hub-shadow);
}

.hub-card__symbol svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: var(--hub-radius-full);
  background: rgb(255 255 255 / 92%);
  color: var(--hub-ink);
  box-shadow: var(--hub-shadow);
  font-size: 11px;
  font-weight: 700;
}

.hub-card__body {
  padding: 16px 4px 18px;
}

.hub-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--hub-muted);
  font-size: 13px;
}

.hub-card__meta > * + *::before {
  margin-right: 8px;
  color: var(--hub-hairline);
  content: "·";
}

.hub-card__title {
  margin: 0;
  color: var(--hub-ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.hub-card__excerpt {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hub-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hub-feature-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--hub-radius-full);
  background: var(--hub-surface-strong);
  color: var(--hub-ink);
  font-size: 12px;
  font-weight: 700;
}

.hub-empty {
  grid-column: 1 / -1;
  padding: 48px 28px;
  border: 1px dashed var(--hub-hairline);
  border-radius: var(--hub-radius-md);
  color: var(--hub-muted);
  text-align: center;
}

.hub-article {
  width: min(calc(100% - (var(--hub-gutter) * 2)), 820px);
  margin-inline: auto;
  padding: 64px 0 96px;
}

.hub-article__back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 28px;
  color: var(--hub-muted);
  font-size: 14px;
  font-weight: 600;
}

.hub-article__title {
  margin: 0;
  color: var(--hub-ink);
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hub-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 40px;
  color: var(--hub-muted);
  font-size: 14px;
}

.hub-article__content {
  color: var(--hub-body);
  font-size: 18px;
  line-height: 1.8;
}

.hub-article__content > * {
  max-width: 100%;
}

.hub-article__content h2,
.hub-article__content h3 {
  margin: 2em 0 0.7em;
  color: var(--hub-ink);
  line-height: 1.25;
}

.hub-article__content a {
  color: var(--hub-primary-active);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-app-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: start;
  padding: 64px 0 96px;
}

.hub-app-panel {
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--hub-hairline);
  border-radius: var(--hub-radius-md);
  background: var(--hub-canvas);
  box-shadow: var(--hub-shadow);
}

.hub-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--hub-radius-sm);
  background: var(--hub-primary);
  color: var(--hub-canvas);
  font-weight: 600;
}

.hub-primary-button:hover,
.hub-primary-button:active {
  background: var(--hub-primary-active);
}

.hub-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--hub-hairline-soft);
  background: var(--hub-canvas);
}

.hub-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.hub-footer__title {
  margin: 0 0 12px;
  color: var(--hub-ink);
  font-size: 16px;
  font-weight: 600;
}

.hub-footer__copy,
.hub-footer__link {
  color: var(--hub-muted);
  font-size: 14px;
}

.hub-footer__link {
  display: block;
  width: fit-content;
  min-height: 32px;
  padding: 5px 0;
}

.hub-footer__link:hover {
  color: var(--hub-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hub-footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hub-hairline-soft);
  color: var(--hub-muted);
  font-size: 13px;
}

.hub-404 {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding: 64px 20px;
  text-align: center;
}

.hub-404__code {
  margin: 0;
  color: var(--hub-primary);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 1127px) {
  :root {
    --hub-gutter: 24px;
  }

  .hub-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .hub-tabs {
    justify-self: center;
  }

  .hub-tab {
    min-width: 120px;
    padding-inline: 18px;
  }

  .hub-brand__label {
    display: none;
  }

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

@media (max-width: 743px) {
  :root {
    --hub-gutter: 20px;
    --hub-section: 48px;
  }

  body.admin-bar .hub-header {
    top: 46px;
  }

  .hub-header__inner {
    min-height: 74px;
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .hub-brand__mark {
    width: 40px;
    height: 40px;
  }

  .hub-tabs {
    justify-self: end;
    min-height: 52px;
    padding: 3px;
  }

  .hub-tab {
    min-width: 88px;
    min-height: 48px;
    padding: 9px 13px;
    font-size: 14px;
  }

  .hub-tab .hub-icon {
    display: none;
  }

  .hub-tab::after {
    right: 18px;
    left: 18px;
  }

  .hub-header__actions {
    display: none;
  }

  .hub-hero {
    padding: 52px 0 40px;
  }

  .hub-hero__title {
    font-size: 28px;
    line-height: 1.43;
    letter-spacing: 0;
  }

  .hub-hero__copy {
    margin-top: 18px;
    font-size: 17px;
  }

  .hub-hero__search {
    min-height: 60px;
    margin-top: 28px;
    padding-left: 20px;
  }

  .hub-section__header {
    align-items: start;
    flex-direction: column;
  }

  .hub-section__link {
    width: 100%;
  }

  .hub-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hub-card__media,
  .hub-card--app .hub-card__media {
    aspect-ratio: 16 / 10;
  }

  .hub-article {
    width: calc(100% - 40px);
    padding: 48px 0 72px;
  }

  .hub-article__content {
    font-size: 17px;
  }

  .hub-app-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 110px;
  }

  .hub-app-panel {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 0;
  }

  .hub-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .hub-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
