/* ==========================================================================
   AIRISH LAYOUT ARCHITECTURE
   Bento Grid, Mobile Viewport Shell, Floating Bottom Navbar & Ambient Layer
   ========================================================================== */

/* Ambient Motion Background - Solid Black */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000000;
}

.ambient-blob {
  display: none;
}

.ambient-blob-1 {
  top: -10%;
  right: -5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-sage) 0%, rgba(148, 210, 189, 0) 70%);
}

.ambient-blob-2 {
  bottom: 20%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-lavender) 0%, rgba(196, 181, 253, 0) 70%);
  animation-duration: 24s;
  animation-delay: -5s;
}

.ambient-blob-3 {
  top: 45%;
  right: 15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-gold) 0%, rgba(233, 216, 166, 0) 70%);
  animation-duration: 20s;
  animation-delay: -10s;
  opacity: 0.22;
}

@keyframes ambientFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -40px) scale(1.08);
  }

  100% {
    transform: translate(-25px, 35px) scale(0.95);
  }
}

/* App Viewport Shell */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-primary);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--nav-height) + 0px);
}

@media (min-width: 641px) {
  body {
    background: #000000;
    min-height: 100vh;
    padding: 0;
  }

  .app-shell {
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    margin: 0 auto;
    min-height: 92vh;
  }
}

/* Dynamic Ambient Artwork Stage (Netflix-Style Background Blur) */
.ambient-artwork-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(640px, 75vh, 820px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  border-bottom: none !important;
}

.ambient-stage-canvas {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  filter: blur(70px) saturate(1.5) brightness(0.42);
  -webkit-filter: blur(70px) saturate(1.5) brightness(0.42);
  transform: scale(1.15) translateZ(0);
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

.ambient-stage-canvas.active {
  opacity: 1;
}

@media (max-width: 640px) {
  .ambient-stage-canvas {
    filter: blur(40px) saturate(1.4) brightness(0.42);
    -webkit-filter: blur(40px) saturate(1.4) brightness(0.42);
  }
}

.ambient-stage-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(11, 15, 23, 0.55) 0%,
      rgba(11, 15, 23, 0.34) 20%,
      rgba(11, 15, 23, 0.48) 45%,
      rgba(11, 15, 23, 0.88) 68%,
      var(--bg-primary) 82%,
      var(--bg-primary) 100%);
  pointer-events: none;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0px 20px;
  background: transparent;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-heading {
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-link:hover {
  opacity: 1;
}

.brand-logo-img,
.brand-logo-svg {
  height: 18px;
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.brand-logo-svg stop {
  transition: stop-color 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-logo-link:hover .brand-logo-img,
.brand-logo-link:hover .brand-logo-svg {
  transform: translateY(-0.5px);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.brand-logo-svg .hyper-svg-char {
  font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 200;
  fill: #ffffff;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 12px;
  background: linear-gradient(135deg, #17e8df 0%, #94d2bd 50%, #70d6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hyper Text Logo (Magic UI Style) */
.hyper-text-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.brand-logo-link:hover .hyper-text-logo {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

.hyper-text-logo .hyper-char {
  display: inline-block;
  text-align: center;
  min-width: 0.72em;
  font-family: inherit;
  color: #ffffff;
  transition: opacity 0.12s ease, text-shadow 0.12s ease;
}

.hyper-text-logo .hyper-char.is-scrambling {
  opacity: 0.75;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hyper-text-logo .hyper-char.is-resolved {
  opacity: 1;
  text-shadow: none;
  font-family: var(--font-display, 'Poppins', sans-serif);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
  border: 1px solid rgba(148, 210, 189, 0.25);
}

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

.icon-btn {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
}

.icon-btn i {
  font-size: 16px !important;
}

.icon-btn:hover {
  background: var(--glass-bg-active);
  border-color: var(--glass-border-light);
}

.icon-btn:active {}

.icon-btn.active {
  color: var(--accent-sage);
}

/* Main Content Area */
.main-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Search Section (Default Tersembunyi, Tampil Saat Icon Search Diklik) */
.search-section {
  display: none;
  animation: searchSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-section.open {
  display: block;
}

@keyframes searchSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Collapsible Section Header (Auto-hides after 3 seconds) */
.our-artist-header {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    margin-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 50px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
}

.our-artist-header.is-hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0 !important;
  transform: translateY(-8px);
  pointer-events: none;
}

.section-title {
  font-size: 16px;
  font-family: 'Poppins';
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-sage);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.section-link:hover {
  gap: 6px;
  color: #ffffff;
}

.section-link-text {
  display: inline-block;
}

.section-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.section-link:hover .section-link-icon {
  transform: translate(2px, -2px);
}

/* Bento Masonry Grid System (Zero-gap Waterfall) */
.bento-grid {
  display: flex;
  gap: 14px;
  width: 100%;
  align-items: flex-start;
}

.bento-grid:not(:has(.bento-col)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.bento-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.bento-empty-state {
  width: 100%;
  text-align: center;
  padding: 48px 20px;
}

/* Floating Glass Bottom Navigation Bar - Translucent Frosted Glass */
.bottom-nav-container {
  position: fixed;
  bottom: max(5px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  z-index: 50;
  /* Animasi Slide Up (Muncul) - Murni Transform agar backdrop blur selalu aktif instan */
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Khusus Mobile Browser Chrome: bottom 10px */
html.is-mobile-chrome .bottom-nav-container,
body.is-mobile-chrome .bottom-nav-container {
  bottom: 10px;
}

@media (min-width: 641px) {
  .bottom-nav-container {
    bottom: 10px;
    width: calc(100% - 24px);
  }
}

/* Sembunyikan bottom nav saat scroll: Meluncur ke bawah layar murni tanpa opacity delay */
.bottom-nav-container.nav-hidden {
  transform: translate(-50%, calc(100% + 140px)) !important;
  pointer-events: none !important;
  /* Animasi Slide Down (Sembunyi) - Meluncur ke bawah halus */
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hide floating bottom nav smoothly when a modal/bottom sheet is open */
body.sheet-open .bottom-nav-container,
body:has(#a11yModalBackdrop.open) .bottom-nav-container,
body:has(#a11yDrawer.open) .bottom-nav-container,
body:has(#rentalBottomSheet.open) .bottom-nav-container,
body:has(#corpInquiryModal.open) .bottom-nav-container {
  transform: translate(-50%, 40px);
  opacity: 0;
  pointer-events: none;
}

body.sheet-open {
  overflow: hidden;
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 3px 10px;
  background: rgba(11, 15, 23, 0.4);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), var(--glass-glow);
  isolation: isolate;
  transform: translateZ(0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  color: var(--text-secondary);
  background: transparent;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-item svg,
.nav-item i {
  font-size: 20px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  stroke: currentColor;
  stroke-width: 2;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-secondary);
  background: transparent;
}

.nav-item.active {
  color: var(--text-primary);
  background: transparent;
}

.nav-item.active svg,
.nav-item.active i {
  transform: scale(1.06);
  stroke: var(--text-primary);
  color: var(--text-primary);
}

.nav-item.active .nav-label {
  color: var(--text-primary);
  font-weight: 600;
}