/* ════════════════════════════════════════════════════════════════════════
   HARAMAIN COMPANION · ʿUMRA-MODES (Picker UI) CSS v1.0
   ────────────────────────────────────────────────────────────────────────
   CSS für umra-modes.js — Modi-Picker (Solo vs. Tamattuʿ-Prep)
   
   Pattern wie hajj-types.css mit hcu-* Prefix
   
   STRUKTUR:
     .hcu-modes-picker      — Container (volles Layout)
     .hcu-modes-picker--compact — Kompaktes Layout (für Settings)
     .hcu-modes-header      — Title + Subtitle oben
     .hcu-modes-cards       — Cards-Container (vertikal)
     .hcu-mode-card         — Eine Modus-Card
     .hcu-mode-card--active — Selected-State
     .hcu-mode-card--compact — Kompakt-Variante
   
   v1.0 · 04.05.2026
   ════════════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────────────
   PICKER CONTAINER
   ────────────────────────────────────────────────────────────────────────── */
.hcu-modes-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 0;
}


/* ──────────────────────────────────────────────────────────────────────────
   PICKER HEADER
   ────────────────────────────────────────────────────────────────────────── */
.hcu-modes-header {
  text-align: center;
  padding: 12px 16px 0;
}
.hcu-modes-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.hcu-modes-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}


/* ──────────────────────────────────────────────────────────────────────────
   CARDS GRID
   ────────────────────────────────────────────────────────────────────────── */
.hcu-modes-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ──────────────────────────────────────────────────────────────────────────
   MODE CARD (volles Layout)
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.hcu-mode-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.hcu-mode-card:active { transform: scale(0.99); }

.hcu-mode-card--active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(20, 148, 106, 0.04) 100%);
  border-color: #2dd4bf;
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.12);
}

/* Recommended-Glow für Solo-Card */
.hcu-mode-card:has(.hcu-mode-badge-recommended) {
  border-color: rgba(212, 168, 67, 0.3);
}
.hcu-mode-card:has(.hcu-mode-badge-recommended):hover {
  border-color: rgba(212, 168, 67, 0.5);
  background: rgba(212, 168, 67, 0.04);
}
.hcu-mode-card.hcu-mode-card--active:has(.hcu-mode-badge-recommended) {
  border-color: #2dd4bf;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(212, 168, 67, 0.04) 100%);
}


/* ──────────────────────────────────────────────────────────────────────────
   BADGES (Recommended + Linked-Hajj)
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-badge-recommended {
  position: absolute;
  top: -1px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #d4a843, #c9a14a);
  color: #1a1410;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.hcu-mode-badge-star {
  font-size: 10px;
}

.hcu-mode-badge-linked {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}


/* ──────────────────────────────────────────────────────────────────────────
   MODE NAME + ARABIC
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  /* Padding rechts damit Recommended-Badge nicht überlappt */
  padding-right: 80px;
}
.hcu-mode-card--active .hcu-mode-name { color: #2dd4bf; }

.hcu-mode-name-ar {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  direction: rtl;
}


/* ──────────────────────────────────────────────────────────────────────────
   MEANING (Beschreibung)
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-meaning {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 14px;
}


/* ──────────────────────────────────────────────────────────────────────────
   FLOW STEPS
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 12px;
}
.hcu-mode-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcu-mode-flow-num {
  width: 22px; height: 22px;
  background: rgba(212, 168, 67, 0.2);
  color: #d4a843;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.hcu-mode-flow-text {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}


/* ──────────────────────────────────────────────────────────────────────────
   HADY-INFO
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-hady-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  font-size: 11px;
  color: #fbbf24;
  font-weight: 600;
}


/* ──────────────────────────────────────────────────────────────────────────
   ACTIVE CHECK
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-check {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.4);
}


/* ──────────────────────────────────────────────────────────────────────────
   COMPACT VARIANT (für Settings, Strip, etc.)
   ────────────────────────────────────────────────────────────────────────── */
.hcu-modes-picker--compact {
  padding: 8px 0;
}
.hcu-modes-cards--compact {
  flex-direction: row;
  gap: 8px;
}
.hcu-mode-card--compact {
  flex: 1;
  padding: 10px;
  border-radius: 11px;
}
.hcu-mode-card--compact .hcu-mode-name {
  font-size: 11px;
  padding-right: 0;
  margin-bottom: 0;
}

.hcu-mode-mini-tag {
  display: inline-block;
  font-size: 10px;
  margin-right: 2px;
}


/* ──────────────────────────────────────────────────────────────────────────
   EMPTY STATE
   ────────────────────────────────────────────────────────────────────────── */
.hcu-mode-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}


/* ──────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hcu-mode-card { padding: 14px; }
  .hcu-mode-name { font-size: 16px; padding-right: 70px; }
  .hcu-mode-meaning { font-size: 12px; }
}


/* ──────────────────────────────────────────────────────────────────────────
   RTL SUPPORT
   ────────────────────────────────────────────────────────────────────────── */
[dir="rtl"] .hcu-mode-badge-recommended {
  right: auto;
  left: 12px;
  border-radius: 0 0 8px 8px;
}
[dir="rtl"] .hcu-mode-badge-linked {
  right: auto;
  left: 12px;
}
[dir="rtl"] .hcu-mode-name {
  padding-right: 0;
  padding-left: 80px;
}
[dir="rtl"] .hcu-mode-check {
  right: auto;
  left: 12px;
}
