/* ==========================================================================
   FOREVER YEARS HUB — PORTAL CARDS
   ========================================================================== */
.hub-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4.5rem) 0 3.5rem;
  text-align: center;
  z-index: 1;
}

.hub-hero .hero-title {
  margin-bottom: 1.25rem;
}

.hub-hero .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.portal-section {
  position: relative;
  z-index: 1;
  padding: 1rem 0 5.5rem;
}

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

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.portal-card:hover {
  transform: translateY(-6px);
}

.portal-games {
  border-color: rgba(0, 240, 255, 0.22);
}

.portal-games:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 20px 45px -15px rgba(0, 240, 255, 0.28);
}

.portal-furniture {
  border-color: rgba(245, 158, 11, 0.25);
}

.portal-furniture:hover {
  border-color: var(--amber-primary);
  box-shadow: 0 20px 45px -15px rgba(245, 158, 11, 0.28);
}

.portal-novels {
  border-color: rgba(139, 92, 246, 0.25);
}

.portal-novels:hover {
  border-color: var(--violet-400);
  box-shadow: 0 20px 45px -15px rgba(139, 92, 246, 0.28);
}

.portal-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.portal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.portal-card:hover .portal-thumb img {
  transform: scale(1.05);
}

.portal-thumb-novels {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.35), rgba(15, 23, 42, 0.95) 70%);
}

.novels-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--violet-400);
  text-align: center;
  padding: 1.5rem;
}

.novels-emblem span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ddd6fe;
}

.portal-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-cyan {
  background: rgba(3, 7, 18, 0.78);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.badge-amber {
  background: rgba(3, 7, 18, 0.78);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.badge-violet {
  background: rgba(3, 7, 18, 0.78);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.45);
}

.portal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.65rem;
}

.portal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.portal-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.portal-games .portal-cta { color: var(--cyan-primary); }
.portal-furniture .portal-cta { color: #fbbf24; }
.portal-novels .portal-cta { color: var(--violet-400); }

/* ==========================================================================
   FURNITURE FLIP — BEFORE & AFTER SLIDERS & GALLERY
   ========================================================================== */
.subpage-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 2.5rem;
  text-align: center;
  z-index: 1;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 55%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ba-section,
.flip-gallery-section,
.novels-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0 5rem;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.ba-card {
  background: var(--surface-glass);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.ba-card.ba-featured {
  grid-column: 1 / -1;
}

.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #060b16;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.ba-featured .ba-stage {
  aspect-ratio: 16 / 9;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(3, 7, 18, 0.88);
  border: 2px solid #fbbf24;
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 3;
}

.ba-pill-label {
  position: absolute;
  bottom: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(3, 7, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  pointer-events: none;
  z-index: 2;
}

.ba-pill-before { left: 0.85rem; }
.ba-pill-after {
  right: 0.85rem;
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.45);
}

.ba-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ba-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.ba-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ba-controls {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(3, 7, 18, 0.55);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.ba-step-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.ba-step-btn:hover,
.ba-step-btn.active {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
}

.ba-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

.ba-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.ba-thumb-btn {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  padding: 0;
  cursor: pointer;
  background: #000;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.ba-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
}

.ba-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--text-primary);
}

.filter-pill.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--amber-primary);
  color: #fde68a;
}

.flip-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.flip-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.flip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
}

.flip-card.is-hidden {
  display: none;
}

.flip-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #060b16;
}

.flip-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.flip-card:hover .flip-card-media img {
  transform: scale(1.04);
}

.flip-card-body {
  padding: 1.1rem 1.25rem;
}

.flip-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  margin-bottom: 0.35rem;
}

.flip-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.flip-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FOREVER YEARS NOVELS — COMING SOON
   ========================================================================== */
.novels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.novel-card {
  background: var(--surface-glass);
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.novel-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-400);
}

.novel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4b5fd;
  background: var(--violet-dim);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.novel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.novel-author {
  font-size: 0.85rem;
  color: var(--violet-400);
  font-family: var(--font-mono);
}

.novel-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
  flex: 1;
}

.novel-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .portal-grid,
  .novels-grid,
  .flip-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portal-grid,
  .ba-grid,
  .flip-gallery-grid,
  .novels-grid {
    grid-template-columns: 1fr;
  }
  .ba-featured .ba-stage {
    aspect-ratio: 4 / 3;
  }
}


/* ==========================================================================
   GENERIC / NEUTRAL HUB THEME (index.html)
   ========================================================================== */
body.hub-theme {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(226, 232, 240, 0.08), transparent 70%),
              linear-gradient(180deg, #0b0d12 0%, #10131a 60%, #0b0d12 100%);
}

body.hub-theme .site-header.scrolled {
  background: rgba(11, 13, 18, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.hub-theme .logo-symbol .symbol-core {
  background: #e2e8f0;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.35);
}

body.hub-theme .logo-symbol .symbol-ring {
  border-color: rgba(226, 232, 240, 0.45);
}

body.hub-theme .hero-badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

body.hub-theme .hero-badge .live-dot {
  background: #e2e8f0;
  box-shadow: 0 0 8px rgba(226, 232, 240, 0.5);
}

.gradient-text-neutral {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 55%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.hub-theme .portal-card {
  background: rgba(18, 22, 31, 0.78);
}

body.hub-theme .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   VINTAGE HEIRLOOM THEME (furniture.html)
   Warm Parchment, Walnut Espresso, Antique Brass & Sage
   ========================================================================== */
body.vintage-theme {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --text-primary: #2b2119;
  --text-secondary: #5c4d42;
  --text-muted: #857467;
  --border-subtle: rgba(43, 33, 25, 0.14);
  --surface-glass: rgba(255, 251, 244, 0.88);
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(180, 134, 72, 0.12), transparent 65%),
              linear-gradient(180deg, #f6f0e4 0%, #efe6d5 50%, #f5efe2 100%);
  color: var(--text-primary);
}

body.vintage-theme .site-header {
  background: rgba(246, 240, 228, 0.85);
  border-bottom: 1px solid rgba(43, 33, 25, 0.1);
}

body.vintage-theme .site-header.scrolled {
  background: rgba(246, 240, 228, 0.96);
  border-bottom-color: rgba(43, 33, 25, 0.18);
  box-shadow: 0 8px 24px -12px rgba(43, 33, 25, 0.18);
}

body.vintage-theme .brand-name {
  color: #2b2119;
}

body.vintage-theme .brand-tagline {
  color: #8c6230;
}

body.vintage-theme .logo-symbol .symbol-core {
  background: #9a6b32;
  box-shadow: none;
}

body.vintage-theme .logo-symbol .symbol-ring {
  border-color: rgba(154, 107, 50, 0.55);
}

body.vintage-theme .nav-link {
  color: #5c4d42;
}

body.vintage-theme .nav-link:hover {
  color: #2b2119;
}

body.vintage-theme .btn-outline {
  color: #2b2119;
  border-color: rgba(43, 33, 25, 0.25);
  background: rgba(255, 251, 244, 0.6);
}

body.vintage-theme .btn-outline:hover {
  border-color: #9a6b32;
  background: rgba(154, 107, 50, 0.1);
}

body.vintage-theme .hamburger-bar {
  background: #2b2119;
}

body.vintage-theme .mobile-drawer {
  background: rgba(246, 240, 228, 0.98);
  border-bottom: 1px solid rgba(43, 33, 25, 0.15);
}

body.vintage-theme .mobile-link {
  color: #2b2119;
  border-bottom-color: rgba(43, 33, 25, 0.1);
}

body.vintage-theme .hero-badge {
  background: rgba(154, 107, 50, 0.1);
  border-color: rgba(154, 107, 50, 0.35);
  color: #7c5322;
}

body.vintage-theme .hero-badge .live-dot {
  background: #9a6b32;
  box-shadow: 0 0 6px rgba(154, 107, 50, 0.45);
}

body.vintage-theme .gradient-text-amber {
  background: linear-gradient(135deg, #6e4519 0%, #9a6b32 55%, #b88644 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.vintage-theme .section-tag {
  color: #8c6230;
  letter-spacing: 0.16em;
}

body.vintage-theme .ba-card {
  background: #fffcf6;
  border: 1px solid rgba(43, 33, 25, 0.14);
  box-shadow: 0 14px 34px -16px rgba(43, 33, 25, 0.2);
}

body.vintage-theme .ba-stage {
  background: #e7decb;
}

body.vintage-theme .ba-divider {
  background: #fffcf6;
  box-shadow: 0 0 10px rgba(43, 33, 25, 0.45);
}

body.vintage-theme .ba-handle {
  background: #2b2119;
  border-color: #d4a76a;
  color: #f6f0e4;
}

body.vintage-theme .ba-pill-label {
  background: rgba(43, 33, 25, 0.84);
  color: #f6f0e4;
  border-color: rgba(255, 255, 255, 0.2);
}

body.vintage-theme .ba-pill-after {
  background: rgba(92, 107, 87, 0.9);
  color: #fffcf6;
  border-color: rgba(255, 255, 255, 0.25);
}

body.vintage-theme .ba-controls {
  background: #efe6d5;
  border-color: rgba(43, 33, 25, 0.14);
}

body.vintage-theme .ba-step-btn {
  color: #5c4d42;
}

body.vintage-theme .ba-step-btn:hover,
body.vintage-theme .ba-step-btn.active {
  background: #2b2119;
  color: #f6f0e4;
}

body.vintage-theme .ba-thumb-btn {
  border-color: rgba(43, 33, 25, 0.2);
}

body.vintage-theme .ba-thumb-btn:hover {
  border-color: #9a6b32;
}

body.vintage-theme .filter-pill {
  background: #fffcf6;
  border-color: rgba(43, 33, 25, 0.18);
  color: #5c4d42;
  font-family: var(--font-body);
}

body.vintage-theme .filter-pill:hover {
  border-color: #9a6b32;
  color: #2b2119;
}

body.vintage-theme .filter-pill.active {
  background: #2b2119;
  border-color: #2b2119;
  color: #f6f0e4;
}

body.vintage-theme .flip-card {
  background: #fffcf6;
  border-color: rgba(43, 33, 25, 0.14);
  box-shadow: 0 10px 26px -16px rgba(43, 33, 25, 0.22);
}

body.vintage-theme .flip-card:hover {
  border-color: #9a6b32;
}

body.vintage-theme .flip-card-media {
  background: #e7decb;
}

body.vintage-theme .flip-card-tag {
  color: #5c6b57;
}

body.vintage-theme .site-footer {
  background: #e9dfd0;
  border-top: 1px solid rgba(43, 33, 25, 0.14);
}

body.vintage-theme .footer-heading {
  color: #2b2119;
}

body.vintage-theme .footer-links a {
  color: #5c4d42;
}

body.vintage-theme .footer-links a:hover {
  color: #9a6b32;
}
