/* ============================================================
   I BEAN TROLLED — members.css
   Shared styles for the Inner 369 members portal
   ============================================================ */

/* ── PORTAL LAYOUT ── */
.portal-page {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 120px 24px 72px;
}

@media (max-width: 600px) {
  .portal-page {
    padding: 104px 18px 48px;
  }
}

/* ── INNER 369 SIDEBAR TOGGLE ── */
.portal-toggle {
  position: fixed;
  top: 74px;
  left: 0;
  z-index: 195;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  cursor: pointer;
  background: rgba(139, 0, 255, .9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 132, 252, .35);
  border-left: none;
  border-radius: 0 9px 9px 0;
  box-shadow: 0 0 22px rgba(139, 0, 255, .22);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.portal-toggle:hover {
  background: rgba(139, 0, 255, 1);
  box-shadow: 0 0 28px rgba(139, 0, 255, .4);
}

.portal-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ── INNER 369 SIDEBAR ── */
.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 -280px;
  z-index: 220;
  width: 280px;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
  overflow-y: auto;
  background: rgba(10, 5, 25, .985);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(139, 0, 255, .35);
  box-shadow: 18px 0 48px rgba(0, 0, 0, .35);
  transition: left .3s cubic-bezier(.4, 0, .2, 1);
}

.portal-sidebar.open {
  left: 0;
}

.portal-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, .68);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.portal-sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.portal-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(139, 0, 255, .22);
}

.portal-sidebar-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: .72rem;
  letter-spacing: .16em;
  color: #c084fc;
  text-shadow: 0 0 18px rgba(192, 132, 252, .35);
}

.portal-sidebar-close {
  padding: 4px;
  color: rgba(232, 224, 240, .55);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s ease;
}

.portal-sidebar-close:hover {
  color: #e8e0f0;
}

.portal-sidebar a {
  display: block;
  padding: 14px 20px;
  color: rgba(232, 224, 240, .62);
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.portal-sidebar a:hover {
  color: #e8e0f0;
  background: rgba(139, 0, 255, .08);
  border-left-color: rgba(139, 0, 255, .45);
}

.portal-sidebar a.active {
  color: #c084fc;
  background: rgba(139, 0, 255, .14);
  border-left-color: #8B00FF;
}

/* Retired top portal bar. Kept hidden so old empty markup causes no layout shift. */
.portal-nav.journey-nav-buttons {
  display: flex !important;
  position: static;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 40px;
}

/* ── PORTAL HEADER ── */
.portal-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.portal-title {
  margin-bottom: 10px;
  color: var(--text);
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.35rem, 4vw, 2.15rem);
  line-height: 1.25;
  text-shadow: 0 0 34px rgba(192, 132, 252, .42);
}

.portal-sub {
  color: var(--muted);
  font-size: .95rem;
  font-style: italic;
  line-height: 1.7;
}

/* ── PORTAL CARDS ── */
.portal-card {
  position: relative;
  padding: 28px;
  margin-bottom: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(192, 132, 252, .16);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.portal-card-title {
  margin-bottom: 8px;
  color: #c084fc;
  font-family: 'Cinzel Decorative', serif;
  font-size: .84rem;
  letter-spacing: .12em;
  line-height: 1.5;
}

.portal-card-sub {
  margin-bottom: 20px;
  color: rgba(232, 224, 240, .48);
  font-size: .86rem;
  font-style: italic;
  line-height: 1.7;
}

.portal-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .portal-page {
    padding: 104px 20px 44px;
  }
}

/* ── PORTAL GRIDS ── */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 760px) {
  .portal-grid,
  .portal-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── INNER 369 BUTTONS ── */
.portal-btn,
.portal-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  font-family: 'Cinzel Decorative', serif;
  font-size: .68rem;
  letter-spacing: .13em;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.portal-btn {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 26px rgba(139, 0, 255, .28);
}

.portal-btn-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(232, 224, 240, .28);
}

.portal-btn:hover,
.portal-btn-outline:hover {
  transform: translateY(-2px);
}

.portal-btn:hover {
  box-shadow: 0 0 38px rgba(139, 0, 255, .45);
}

.portal-btn-outline:hover {
  color: #c084fc;
  border-color: #8B00FF;
}

.portal-btn.full-width,
.portal-btn-outline.full-width {
  display: flex;
  width: 100%;
}

/* ── SECTION DIVIDERS ── */
.portal-divider,
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 20px;
  color: rgba(232, 224, 240, .38);
  font-family: 'Cinzel Decorative', serif;
  font-size: .72rem;
  letter-spacing: .18em;
  text-align: center;
}

.portal-divider::before,
.portal-divider::after,
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .09);
}

/* ── STATUS / MESSAGE BOXES ── */
.portal-message,
.portal-empty,
.coming-soon-card {
  padding: 28px;
  margin-bottom: 24px;
  text-align: center;
  background: rgba(255, 255, 255, .025);
  border: 1px dashed rgba(192, 132, 252, .18);
  border-radius: 18px;
}

.portal-message p,
.portal-empty p,
.coming-soon-card p {
  color: rgba(232, 224, 240, .42);
  font-size: .88rem;
  font-style: italic;
  line-height: 1.8;
}

/* ── MEDITATION CARDS ── */
.meditation-card {
  margin-bottom: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  transition: transform .3s ease, border-color .3s ease;
}

.meditation-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, .22);
}

.meditation-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.meditation-troll {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--c));
  animation: float 3s ease-in-out infinite;
}

.meditation-meta {
  flex: 1;
}

.meditation-color {
  margin-bottom: 4px;
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.meditation-title {
  margin-bottom: 4px;
  color: var(--text);
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
}

.meditation-desc {
  color: rgba(232, 224, 240, .52);
  font-size: .84rem;
  font-style: italic;
  line-height: 1.65;
}

.meditation-video {
  padding: 0 20px 20px;
}

.meditation-video-wrap {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 12px;
}

.meditation-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

.meditation-locked {
  padding: 20px;
  text-align: center;
}

.meditation-locked p {
  margin-bottom: 12px;
  color: rgba(232, 224, 240, .38);
  font-size: .85rem;
  font-style: italic;
}

.meditation-locked a {
  display: inline-block;
  padding: 9px 20px;
  color: #c084fc;
  font-family: 'Cinzel Decorative', serif;
  font-size: .65rem;
  letter-spacing: .12em;
  text-decoration: none;
  border: 1.5px solid rgba(192, 132, 252, .32);
  border-radius: 50px;
  transition: background .3s ease, border-color .3s ease;
}

.meditation-locked a:hover {
  background: rgba(192, 132, 252, .1);
  border-color: rgba(192, 132, 252, .55);
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-top: 8px;
  color: rgba(192, 132, 252, .58);
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  letter-spacing: .12em;
  background: rgba(192, 132, 252, .08);
  border: 1px solid rgba(192, 132, 252, .22);
  border-radius: 50px;
}

/* ── ORACLE ── */
.oracle-member-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── MOBILE SAFETY ── */
@media (max-width: 600px) {
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .portal-sidebar {
    width: min(86vw, 280px);
  }

  .meditation-header {
    align-items: flex-start;
    padding: 18px;
  }

  .meditation-troll {
    width: 58px;
    height: 58px;
  }
}

/* ── SHARED ANIMATION ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* ============================================================
   INNER 369 PAGE NAVIGATION
   Shared button grid used across all member pages
   ============================================================ */

.inner369-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 42px;
}

.inner369-nav-btn {
  min-height: 92px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: rgba(232, 224, 240, .76);
  text-align: center;
  text-decoration: none;

  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(192, 132, 252, .18);
  border-radius: 16px;

  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.inner369-nav-btn span {
  font-size: 1.35rem;
  line-height: 1;
}

.inner369-nav-btn strong {
  font-family: 'Cinzel Decorative', serif;
  font-size: .58rem;
  line-height: 1.4;
  letter-spacing: .07em;
}

.inner369-nav-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  background: rgba(139, 0, 255, .1);
  border-color: rgba(192, 132, 252, .48);
  box-shadow: 0 14px 30px rgba(139, 0, 255, .16);
}

.inner369-nav-btn.active {
  color: #fff;
  background: rgba(139, 0, 255, .16);
  border-color: #8B00FF;
  box-shadow:
    0 0 22px rgba(139, 0, 255, .2),
    inset 0 0 18px rgba(139, 0, 255, .08);
}

@media (max-width: 760px) {
  .inner369-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 34px;
  }

  .inner369-nav-btn {
    min-height: 82px;
    padding: 13px 8px;
  }
}
@media (max-width: 760px) {
  .portal-nav.journey-nav-buttons {
    display: flex !important;
    position: static !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 32px;
  }

  .portal-nav.journey-nav-buttons .btn-rainbow {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    font-size: .58rem;
  }
}