/* ============================================
   responsive.css — Global Responsive Utilities
   IrusGear Frontend v3.0
   ============================================ */

/* ── Custom Properties ──────────────────────── */
:root {
  /* Bottom clearance */
  --nav-height:       88px;
  --clearance-n-tb:   110px;
  --clearance-n-mb:   100px;
  --clearance-n-ph:   90px;
  --clearance-n-sm:   80px;
  --clearance-s-tb:   170px;
  --clearance-s-mb:   160px;
  --clearance-s-ph:   145px;
  --clearance-s-sm:   130px;
  --sticky-offset:    88px;

  /* Border Radius */
  --radius-xs:  8px;
  --radius-sm:  10px;
  --radius-md:  12px;
  --radius-lg:  14px;
  --radius-xl:  18px;
  --radius-pill: 9999px;

  /* Spacing */
  --pad-sm:  10px;
  --pad-md:  14px;
  --pad-lg:  16px;
  --pad-xl:  20px;
  --pad-2xl: 28px;
}

/* ── Scrollbar Reset ──────────────────────── */
* { scrollbar-width: thin; scrollbar-color: #e4e4e7 transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #e4e4e7; border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Horizontal Scroll ─────────────────────── */
.scroll-x {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* ── Text Truncation ───────────────────────── */
.text-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Bottom Clearance Utilities ─────────────── */
.clearance-n {
  padding-bottom: var(--clearance-n-tb);
}
@media (max-width: 767.98px) { .clearance-n { padding-bottom: var(--clearance-n-mb); } }
@media (max-width: 575.98px) { .clearance-n { padding-bottom: var(--clearance-n-ph); } }
@media (max-width: 480px)    { .clearance-n { padding-bottom: var(--clearance-n-sm); } }

.clearance-s {
  padding-bottom: var(--clearance-s-tb);
}
@media (max-width: 767.98px) { .clearance-s { padding-bottom: var(--clearance-s-mb); } }
@media (max-width: 575.98px) { .clearance-s { padding-bottom: var(--clearance-s-ph); } }
@media (max-width: 480px)    { .clearance-s { padding-bottom: var(--clearance-s-sm); } }

/* ── BottomSheet Shared Styles ─────────────── */
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ececf1;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.sheet-header__title {
  font-size: 16px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
}
.sheet-header__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #71717a;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.sheet-header__close:hover { background: #f4f4f5; color: #18181b; }

.sheet-list { display: flex; flex-direction: column; }
.sheet-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: none;
  border-bottom: 1px solid #f4f4f5;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
  min-height: 52px;
}
.sheet-list-item:last-child { border-bottom: none; }
.sheet-list-item:active { background: #f4f4f5; }
.sheet-list-item--selected { background: var(--irus-color-accent-soft); border-color: var(--irus-color-accent); }

.sheet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
}
.sheet-empty__icon { font-size: 48px; color: #a1a1aa; }
.sheet-empty__text { font-size: 14px; color: #71717a; margin: 0; }

/* ── Mobile Visibility ──────────────────────── */
@media (max-width: 575.98px) {
  .hide-mobile       { display: none !important; }
  .show-mobile-only  { display: block !important; }
}
@media (max-width: 767.98px) {
  .hide-mobile-sm   { display: none !important; }
}
@media (max-width: 991.98px) {
  .hide-tablet       { display: none !important; }
  .show-tablet-only  { display: block !important; }
}
@media (min-width: 992px) {
  .hide-desktop      { display: none !important; }
}

/* ── Tap Target ─────────────────────────────── */
.tap-target {
  min-height: 44px;
  min-width: 44px;
}

/* ── BottomSheet max-width on larger screens ── */
@media (min-width: 576px) {
  .sheet-panel {
    max-width: 480px;
    margin: 0 auto;
  }
}
