/* LifeLoveMe — Upanishads Hub */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-tertiary: #6e6e8a;
  --surface: rgba(255, 255, 255, 0.78);
  --border: rgba(26, 26, 46, 0.08);
  --shadow: 0 4px 24px rgba(26, 26, 46, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 36px rgba(26, 26, 46, 0.12);
  --radius-lg: clamp(18px, 2.5vw, 26px);
  --radius-xl: clamp(22px, 3vw, 30px);
  --accent: #3d5a80;
  --accent-2: #5c4d7d;
  --accent-hover: #2f4765;
  --max-width: 1040px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 100% 60% at 50% -5%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(160deg, #e8ecf7 0%, #f0e8f4 38%, #f7f4ef 70%, #e4eaf5 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
}

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

.upa-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.75rem);
  border-bottom: 1px solid var(--border);
}

.upa-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.upa-nav__list > li + li::before {
  content: "|";
  color: var(--text-tertiary);
  margin-right: 0.6rem;
  font-weight: 400;
}

.upa-nav__list a {
  text-decoration: none;
}

.upa-nav__list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.upa-nav__current {
  color: var(--text-primary);
  font-weight: 700;
}

.upa-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.75rem) 2.5rem;
}

.upa-hero {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 1.5rem;
}

.upa-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.upa-hero__subtitle {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
}

.upa-hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.upa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.upa-btn:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.upa-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
}

.upa-btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.upa-btn--ghost {
  background: transparent;
  box-shadow: none;
}

.upa-main {
  padding-top: 0.5rem;
}

.upa-section {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.upa-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.upa-section__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.upa-section__lead {
  margin: 0 0 1.1rem;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.upa-section--technical {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

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

.upa-details {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.35rem 1rem 1rem;
}

.upa-details__summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text-secondary);
  list-style: none;
}

.upa-details__summary::-webkit-details-marker {
  display: none;
}

.upa-details__summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--accent);
}

.upa-details[open] .upa-details__summary::before {
  transform: rotate(90deg);
}

.upa-details__hint {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.upa-details .upa-meta {
  margin-bottom: 0.75rem;
}

.upa-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.upa-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .upa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .upa-grid--themes {
    grid-template-columns: repeat(3, 1fr);
  }

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

.upa-card {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.upa-card--lift {
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.upa-card--lift:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.upa-card__text--lead {
  font-size: 1rem;
  line-height: 1.5;
}

.upa-card__text--muted {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  font-style: italic;
}

.upa-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.upa-card__actions .upa-btn {
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
}

@media (max-width: 520px) {
  .upa-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .upa-card__actions .upa-btn {
    text-align: center;
  }
}

.upa-card__meta {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
}

.upa-card__foot {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.upa-card__study {
  margin-left: auto;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
}

@media (max-width: 520px) {
  .upa-card__study {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

.upa-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(61, 90, 128, 0.12);
  color: var(--accent);
}

.upa-chip--muted {
  background: rgba(110, 110, 138, 0.12);
  color: var(--text-tertiary);
  font-weight: 600;
}

.upa-card--reference .upa-ref-meta {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.upa-ref-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.upa-card__label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.upa-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--accent);
}

.upa-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.upa-card__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  word-break: break-word;
  color: var(--text-secondary);
}

.upa-card__status {
  margin-top: 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(61, 90, 128, 0.12);
  color: var(--accent);
}

.upa-card--reflection {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}

.upa-card__body {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

.upa-card__prompt {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  background: rgba(92, 77, 125, 0.08);
  border-radius: 12px;
  border-left: 3px solid var(--accent-2);
  color: var(--text-primary);
}

.upa-empty {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.upa-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.upa-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.upa-subhead {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.upa-table-wrap {
  overflow-x: auto;
}

.upa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.upa-table th,
.upa-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.upa-table th {
  background: rgba(61, 90, 128, 0.08);
  font-weight: 600;
}

.upa-footer {
  padding: 2rem 0 1rem;
  text-align: center;
}

.upa-footer__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* --- Sacred hub polish (pairs with lifeloveme-sacred-text.css) --- */
.upa-hero--sacred {
  padding-top: 0.25rem;
}

.upa-hero__tagline {
  margin: 0.65rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.upa-hero__btn-ico {
  display: inline-block;
  margin-right: 0.35rem;
  opacity: 0.88;
  font-size: 0.95em;
}

.upa-section__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.upa-section__title::before {
  content: "";
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.05);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 62% 62%;
}

.upa-section--hub-principal .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='1.6'%3E%3Cpath d='M12 2l2.2 6.8H21l-5.5 4 2.1 6.5L12 15.3 6.4 19.3l2.1-6.5L3 8.8h6.8L12 2z'/%3E%3C/svg%3E");
}

.upa-section--hub-all .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='1.6'%3E%3Cpath d='M6 4h12v16H6z M8 8h8 M8 12h5'/%3E%3C/svg%3E");
}

.upa-section--hub-terms .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f7a' stroke-width='1.6'%3E%3Cpath d='M4 5c0-1 1-2 2-2h12l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5z'/%3E%3Cpath d='M8 10h8M8 14h5'/%3E%3C/svg%3E");
}

.upa-section--hub-teachings .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7a6e' stroke-width='1.6'%3E%3Cpath d='M9 22h6M12 22v-8M10 6c0-3 2-5 2-5s2 2 2 5c0 2-1 4-2 5-1-1-2-3-2-5z'/%3E%3C/svg%3E");
}

.upa-section--hub-references .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a6e' stroke-width='1.6'%3E%3Cpath d='M10 13a5 5 0 0 1 7.07 0l1.41 1.42a2 2 0 0 1 0 2.83l-1.42 1.41a2 2 0 0 1-2.83 0L13 17.07'/%3E%3Cpath d='M14 11a5 5 0 0 1-7.07 0L5.52 9.59a2 2 0 0 1 0-2.83l1.41-1.42a2 2 0 0 1 2.83 0L11 6.93'/%3E%3C/svg%3E");
}

.upa-section--hub-themes .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c4d7d' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5L19 19M19 5l-1.5 1.5M6.5 17.5L5 19'/%3E%3C/svg%3E");
}

.upa-section--hub-reflection .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b6ba8' stroke-width='1.6'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

.upa-section--hub-tools .upa-section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3C/svg%3E");
}

.upa-section--hub-principal,
.upa-section--hub-all,
.upa-section--hub-terms,
.upa-section--hub-teachings,
.upa-section--hub-references,
.upa-section--hub-themes,
.upa-section--hub-reflection,
.upa-section--hub-tools {
  padding: 1rem 1rem 1.25rem;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26, 26, 46, 0.06);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 28px rgba(26, 26, 46, 0.04);
}

.upa-section--hub-principal {
  border-color: rgba(201, 162, 39, 0.12);
}

.upa-section--hub-terms {
  border-color: rgba(61, 79, 122, 0.1);
}

.upa-section--hub-teachings {
  border-color: rgba(42, 122, 110, 0.1);
}

.upa-section--hub-reflection {
  border-color: rgba(123, 107, 168, 0.12);
}

.upa-card--collection {
  border-radius: clamp(20px, 3vw, 28px);
  box-shadow: var(--llm-sacral-shadow, var(--shadow));
  transition: box-shadow 0.22s ease, transform 0.18s ease, border-color 0.2s ease;
  border-color: rgba(201, 162, 39, 0.1);
}

.upa-card--collection:hover {
  box-shadow: var(--llm-sacral-shadow-hover, var(--shadow-hover));
  transform: translateY(-2px);
}

.upa-card__meta-row {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.upa-card__ico {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.35rem;
  vertical-align: -0.15em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.upa-card__ico--study {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.upa-card__ico--summary {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2'/%3E%3C/svg%3E");
}

.upa-card__ico--explore {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='1.6'%3E%3Cpath d='M3 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
}
