/* =============================================
   Alpvia Marble — Override CSS
   Fixes for mobile UI (items 1–6)
   ============================================= */

/* ---- Item 1: Mobile header — show CTA button, bigger logo ---- */
@media (max-width: 1080px) {
  .al-header__end .al-btn--sm {
    display: inline-flex !important;
    min-height: 38px;
    padding: 0 14px;
    font-size: .76rem;
  }
}
@media (max-width: 760px) {
  .al-logo img {
    height: 44px !important;
  }
  .al-header__end .al-btn--sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: .72rem;
  }
}
@media (max-width: 420px) {
  .al-header__end .al-btn--sm {
    padding: 0 10px;
    font-size: .68rem;
    letter-spacing: 0;
  }
}

/* ---- Item 2: Mobile drawer — full width, all links visible ---- */
@media (max-width: 1080px) {
  .al-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    right: 0 !important;
    left: 0 !important;
    padding: 28px 24px 80px !important;
    overflow-y: auto !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }
  .al-drawer__group {
    padding-bottom: 16px;
  }
  .al-drawer__top {
    font-size: 1.6rem !important;
    margin-bottom: 6px;
  }
  .al-drawer__link {
    font-size: 1.05rem;
    padding: 10px 0 !important;
  }
  .al-drawer .al-btn {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    min-height: 52px;
    font-size: 1rem;
  }
  /* Ensure drawer content is scrollable, not clipped */
  .al-drawer__body,
  .al-drawer__inner {
    overflow-y: auto !important;
    max-height: none !important;
    height: auto !important;
  }
  /* Reduce group heading sizes for more room */
  .al-drawer__group-title {
    font-size: 0.75rem !important;
  }
}

/* ---- Item 3: Opening animation — shorter, show both stones ---- */
/* Reduce overall height */
.op {
  height: 320vh !important;
}
@media (max-width: 760px) {
  .op {
    height: 200vh !important;
  }
  /* Dark transition bölümünü kısalt */
  .op__dark {
    min-height: auto !important;
    height: auto !important;
  }
  /* Show both stone labels as side-by-side cards on mobile */
  .op__label {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: calc(50% - 5px) !important;
    max-width: none !important;
    text-align: left;
    padding: 14px 12px;
    background: rgba(20, 19, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(243, 239, 232, 0.12);
    transform: none !important;
    left: auto !important;
    top: auto !important;
  }
  .op__label h3 {
    font-size: 1.05rem !important;
    line-height: 1.3;
  }
  .op__label p {
    display: block !important;
    font-size: .78rem;
    margin-top: 4px;
    line-height: 1.35;
  }
  .op__label .op__explore {
    margin-top: 8px;
    font-size: .82rem;
  }
}
@media (max-width: 420px) {
  .op__label {
    padding: 12px 10px;
  }
  .op__label h3 {
    font-size: .95rem !important;
  }
  .op__label p {
    font-size: .72rem;
  }
}

/* ---- Item 4: Remove "Skip animation" button ---- */
.op__skip {
  display: none !important;
}

/* ---- Item 5: 3D viewer — fix overlap at narrow widths ---- */
@media (max-width: 420px) {
  /* Prevent 3D canvas from intercepting touches on the panel below */
  .al-cfg__stage {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    min-height: 50vw !important;
    height: 50vw !important;
  }
  .al-cfg__panel {
    position: relative;
    z-index: 5;
  }
  /* Move reset button into its own space, not overlapping content */
  .al-cfg__reset {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    display: block;
    margin: 10px 16px;
    width: fit-content;
  }
  /* Ensure quote/CTA buttons in configurator panel are clickable */
  .al-cfg__panel .al-btn {
    position: relative;
    z-index: 10;
  }
  /* Add padding at bottom of configurator for breathing room */
  .al-cfg__panel {
    padding-bottom: 40px !important;
  }
}
@media (max-width: 390px) {
  .al-cfg__stage {
    min-height: 46vw !important;
    height: 46vw !important;
  }
  /* Ensure the hint text doesn't overlap reset */
  .al-cfg__hint {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    display: block;
    padding: 8px 16px;
    text-align: center;
  }
}

/* ---- Item 6: Translation-related — legend labels get data-i18n ---- */
/* No CSS needed — handled via JS override */
