/* ============================================
   CHAT SETTINGS PILLS — Aspect Ratio & Quality
   ============================================ */

/* ── Pills row inside plus-menu-dropdown ── */
.plus-menu-pills-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

/* ── Pill wrapper (relative anchor for drop-up) ── */
.chat-setting-pill-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

/* ── Pill button ── */
.chat-setting-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px;
  background: rgba(20, 20, 25, 0.95) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: none !important;
}

.chat-setting-pill:hover {
  background: rgba(35, 35, 42, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.chat-setting-pill .pill-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.chat-setting-pill .pill-icon svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  stroke: rgba(255, 255, 255, 0.9) !important;
}

.chat-setting-pill .pill-value {
  flex: 0 0 auto;
}

.chat-setting-pill .pill-chevron {
  font-size: 8px;
  opacity: 0.6;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ── Drop-up panel ── */
.chat-setting-dropup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.97);
  min-width: 200px;
  background: rgba(12, 14, 18, 0.95);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.chat-setting-dropup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ── Orientation toggle (landscape / portrait) ── */
.orientation-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.orientation-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.orientation-btn svg {
  width: 18px;
  height: 18px;
}

.orientation-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.orientation-btn.active {
  background: rgba(200, 200, 200, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

/* ── Drop-up options list ── */
.dropup-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropup-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease;
  width: 100%;
  text-align: left;
}

.dropup-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropup-option.active {
  background: rgba(200, 200, 200, 0.18);
  color: #ffffff;
}

.dropup-option .option-label {
  font-weight: 500;
}

.dropup-option .option-meta {
  font-size: 11px;
  opacity: 0.5;
  margin-left: 8px;
}

/* ── Section labels & divider (quality drop-up) ── */
.dropup-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  padding: 6px 12px 2px;
}

.dropup-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* ── Mobile overrides ── */
@media (max-width: 768px) {
  .chat-setting-dropup {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 80px;
    transform: translateY(6px) scale(0.97);
    min-width: auto;
    width: auto;
  }

  .chat-setting-dropup.show {
    transform: translateY(0) scale(1);
  }
}
