/* ==========================================================================
   VibeHere — Apple-Style Subpages Design System (Pages CSS)
   Harmonized with index.html design aesthetics
   ========================================================================== */

:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --bg: #000000;
  --alt: #0d0d11;
  --card: rgba(18, 18, 24, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.12);
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #6e6e73;
  --link: #2997ff;
  --line: #222228;
  --accent-blue: #2997ff;
  --accent-purple: #bf5af2;
  --accent-pink: #ff375f;
  --accent-green: #30d158;
  --accent-orange: #ff9f0a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  height: 100%;
  scroll-padding-top: calc(52px + env(safe-area-inset-top, 0px));
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.05rem/1.65 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--accent-purple);
}

::selection {
  background: rgba(0, 113, 227, 0.35);
  color: #fff;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.content-wrap {
  width: min(880px, 100% - 2.5rem);
  margin-inline: auto;
}


/* ==========================================================================
   Navigation (Identical to Apple-style Homepage)
   ========================================================================== */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  height: 52px;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

.nav .brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 0 12px rgba(191, 90, 242, 0.4);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: inherit;
  font-weight: inherit;
  border-radius: 4px;
  transition: color 0.2s;
}

.lang-btn.active {
  color: #fff;
  font-weight: 700;
}

.lang-sep {
  color: var(--subtle);
  font-size: 0.7rem;
}

.nav-btn {
  font-size: 0.8rem;
  font-weight: 600;
  background: #0071e3;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.nav-btn:hover {
  background: #0077ed;
  color: #fff;
  text-decoration: none;
  transform: scale(1.02);
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(191, 90, 242, 0.1);
  border: 1px solid rgba(191, 90, 242, 0.25);
  color: #d8b4fe;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bf5af2;
  box-shadow: 0 0 8px #bf5af2;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 1rem;
}

.page-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--subtle);
}

.page-meta .highlight {
  color: #d8b4fe;
}

/* ==========================================================================
   Editorial Card & Body Layout
   ========================================================================== */
.page-main {
  position: relative;
  z-index: 1;
  padding-bottom: 6rem;
}

.editorial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.editorial-card h2,
.editorial-card h3 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.editorial-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-card h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: #f3e8ff;
}

.editorial-card section:first-of-type h2,
.editorial-card section:first-of-type h3 {
  margin-top: 0;
}

.editorial-card p {
  color: #d1d1d6;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

.editorial-card strong {
  color: #ffffff;
  font-weight: 600;
}

.editorial-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.editorial-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #d1d1d6;
  line-height: 1.65;
}

.editorial-card li .badge-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.badge-icon.check {
  background: rgba(48, 209, 88, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.badge-icon.cross {
  background: rgba(255, 55, 95, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 55, 95, 0.3);
}

.badge-icon.purple {
  background: rgba(191, 90, 242, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(191, 90, 242, 0.3);
}

/* Callout Highlights */
.callout-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}

.callout-box.alert-red {
  background: rgba(255, 69, 58, 0.06);
  border-left: 4px solid #ff453a;
  border-color: rgba(255, 69, 58, 0.25);
  border-left-color: #ff453a;
}

.callout-box.alert-purple {
  background: rgba(191, 90, 242, 0.07);
  border-left: 4px solid var(--accent-purple);
  border-color: rgba(191, 90, 242, 0.25);
  border-left-color: var(--accent-purple);
}

.callout-box p {
  margin: 0;
  color: #fff;
}

/* Action Banner at Bottom */
.page-cta-banner {
  text-align: center;
  margin-top: 3.5rem;
}

.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-pill-primary:hover {
  background: #f0f0f5;
  color: #000;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Apple-Style Footer (Identical to Homepage)
   ========================================================================== */
footer {
  background: var(--alt);
  padding: 3rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: left;
  position: relative;
  z-index: 1;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  max-width: 40ch;
}

.footer-brand p {
  margin-top: 0.5rem;
  color: var(--subtle);
  line-height: 1.45;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--subtle);
}

/* Responsive adjustments */
@media (max-width: 840px) {
  .nav ul li:not(.keep) {
    display: none;
  }
  .editorial-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
}
