/* ==========================================================================
   Prompt / Pause — Public Website Stylesheet (Apple Store / Airbnb Aesthetic)
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-pale: #e8f2ff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.06);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --success: #1d9bf0;
  --success-bg: #e8f5e9;
  --success-ink: #15803d;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.045), 0 1px 3px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.04);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000000;
  --surface: #1c1c1e;
  --surface-soft: #2c2c2e;
  --surface-pale: rgba(41, 151, 255, 0.16);
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #86868b;
  --line: #38383a;
  --line-soft: rgba(255, 255, 255, 0.1);
  --accent: #2997ff;
  --accent-hover: #40a2ff;
  --accent-soft: rgba(41, 151, 255, 0.18);
  --success-bg: rgba(34, 197, 94, 0.2);
  --success-ink: #4ade80;
  --card-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
}

/* ==========================================================================
   Sticky Frosted Glass Navigation Bar (Apple Style)
   ========================================================================== */
.topbar {
  height: 60px;
  padding: 0 max(24px, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 20;
}

:root[data-theme="dark"] .topbar {
  background: rgba(28, 28, 30, 0.82);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font: 700 17px var(--display);
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  height: 30px;
  width: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font: 700 16px var(--display);
  letter-spacing: -0.5px;
}

.brand-light {
  color: var(--muted);
  font-weight: 500;
}

.topbar nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
}

:root[data-theme="dark"] .nav-link.active {
  background: rgba(255, 255, 255, 0.14);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface-soft);
  gap: 2px;
}

.lang-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
  transition: 0.15s ease;
}

.lang-link:hover {
  color: var(--ink);
}

.lang-link.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.theme-toggle {
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  transition: 0.15s ease;
}

.theme-toggle:hover {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Compact Hero Section (Prompts Visible Immediately)
   ========================================================================== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-kicker,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  font: 700 clamp(28px, 3.6vw, 42px)/1.12 var(--display);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.hero p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 2px 0 0;
  max-width: 680px;
}

/* ==========================================================================
   Feed Controls Bar: Tabs + Model Select Dropdown + Compact Search Icon Bar
   ========================================================================== */
.feed-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.feed-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}

.filter-tabs {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 999px;
  gap: 2px;
}

:root[data-theme="dark"] .filter-tabs {
  background: rgba(255, 255, 255, 0.1);
}

.filter-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.selected {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.feed-filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-select-wrap {
  position: relative;
}

.model-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.model-select:hover,
.model-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.compact-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 210px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 2px 4px 2px 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: width 0.2s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.compact-search:focus-within {
  width: 245px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.compact-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  padding: 5px 4px 5px 0;
  outline: none;
}

.compact-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.search-clear-icon {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 50%;
}

.search-clear-icon:hover {
  color: var(--ink);
}

.search-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.search-icon-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

.search-icon-btn svg {
  width: 14px;
  height: 14px;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 14px;
  color: var(--subtle);
  font-size: 12.5px;
  font-weight: 500;
}

/* ==========================================================================
   Apple Store / Airbnb Feed Cards (Bigger Photos + 1-Click Copy Button)
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.post-card.has-photo {
  min-height: 420px;
}

.post-card.text-only {
  min-height: 240px;
}

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

.card-image {
  height: 230px;
  background: linear-gradient(145deg, #ebebf0, #dfdfe6);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--muted);
  font-size: 36px;
  overflow: hidden;
}

:root[data-theme="dark"] .card-image {
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .card-image img {
  transform: scale(1.02);
}

.card-image.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--surface);
}

.pair-side {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.pair-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

.card-type {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1d1d1f;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .card-type {
  background: rgba(28, 28, 30, 0.85);
  color: #f5f5f7;
}

.card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-kicker {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.card-title {
  font: 700 18.5px/1.3 var(--display);
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  color: var(--ink);
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent);
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.model-chip {
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
}

.card-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-copy-btn {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  transition: all 0.15s ease;
}

.card-copy-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.card-copy-btn.is-copied {
  background: var(--success-bg);
  color: var(--success-ink);
}

.card-action {
  text-decoration: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 999px;
  transition: color 0.15s ease;
}

.card-action:hover {
  color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: 20px;
  padding: 64px 24px;
  border: 1px solid var(--line-soft);
}

.load-more {
  text-align: center;
  color: var(--subtle);
  font-size: 13px;
  padding: 36px 0 10px;
}

/* ==========================================================================
   Post Detail View (Apple Card Layout)
   ========================================================================== */
.detail-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--card-shadow);
  margin-top: 14px;
}

.detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.detail-title {
  font: 700 clamp(28px, 4vw, 42px)/1.14 var(--display);
  letter-spacing: -0.025em;
  margin: 12px 0 24px;
  color: var(--ink);
}

.detail-images {
  margin: 0 0 24px;
  height: clamp(240px, 42vw, 420px);
  border-radius: 16px;
  overflow: hidden;
}

.detail-prompt-box {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
}

.detail-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  margin: 0;
}

.detail-output {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--surface-pale);
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-output:before {
  content: attr(data-label);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.primary {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.secondary-button:hover {
  background: var(--surface-soft);
}

/* ==========================================================================
   About & Privacy Pages
   ========================================================================== */
.about-hero {
  text-align: center;
  padding: 56px 20px 38px;
  max-width: 780px;
  margin: 0 auto;
}

.about-hero h1 {
  font: 700 clamp(34px, 4.5vw, 52px)/1.1 var(--display);
  letter-spacing: -0.03em;
  margin: 14px 0;
}

.about-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.about-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.about-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.about-panel.pale {
  background: var(--surface);
}

.about-panel h2 {
  font: 700 21px/1.3 var(--display);
  letter-spacing: -0.02em;
  margin: 10px 0;
}

.about-panel p,
.about-note p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.about-note {
  max-width: 960px;
  margin: 0 auto 64px;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.about-note p {
  max-width: 580px;
  margin: 12px auto 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px max(24px, 5vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--subtle);
  font-size: 13px;
}

footer .brand {
  font-size: 14px;
  color: var(--ink);
}

footer .brand-mark {
  height: 24px;
  width: 24px;
  font-size: 13px;
  border-radius: 7px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 56px;
    padding: 0 16px;
  }
  .brand {
    font-size: 15px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
  .hero {
    padding: 22px 16px 14px;
  }
  .feed-shell {
    padding: 0 16px 48px;
  }
  .feed-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-tabs {
    justify-content: center;
  }
  .feed-filter-right {
    width: 100%;
    justify-content: space-between;
  }
  .compact-search,
  .compact-search:focus-within {
    flex: 1;
    width: auto;
  }
  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .detail-card {
    padding: 22px 18px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 20px;
  }
  .about-note {
    margin: 0 16px 48px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
