/**
 * slots.css – Munka típusa + Időpont foglalás (3. lépés)
 *
 * Felelős:
 *   - .slot-list (időpont kártyák listája)
 *   - .slot-card (egy időpont opció)
 *   - .slot-card.selected (kiválasztott)
 *   - .slot-badge (SOS / mai nap jelzők)
 *   - .sos-slot-info (SOS infó sáv)
 *   - .slot-load-error (betöltési hiba)
 */

/* ==========================================================================
   IDŐPONT LISTA
   ========================================================================== */

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Skeleton állapot */
.slot-list .skeleton-card {
  height: 64px;
}

/* ==========================================================================
   IDŐPONT KÁRTYA
   ========================================================================== */

.slot-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.slot-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.slot-card.selected {
  background: var(--red-light);
  border-color: var(--card-border-active);
}

/* Kiválasztás pipa */
.slot-card::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: white;
  background: var(--red);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.slot-card.selected::after {
  opacity: 1;
}

/* Dátum ikon terület */
.slot-date-box {
  background: rgba(200, 16, 46, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 48px;
  transition: background var(--transition);
}

.slot-card.selected .slot-date-box {
  background: rgba(200, 16, 46, 0.22);
}

.slot-date-day {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-red);
  line-height: 1;
  display: block;
}

.slot-date-mon {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
}

/* Szöveg terület */
.slot-body {
  flex: 1;
  padding-right: 28px; /* pipa helye */
}

.slot-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.slot-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Időpont jelzők (badge-ek) */
.slot-badges {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.slot-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.slot-badge.sos {
  background: var(--orange-light);
  border: 1px solid rgba(230, 126, 34, 0.3);
  color: var(--orange);
}

.slot-badge.today {
  background: var(--green-light);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--green);
}

.slot-badge.morning {
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.3);
  color: var(--gold);
}

.slot-badge.afternoon {
  background: rgba(52, 152, 219, 0.12);
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: var(--blue);
}

/* ==========================================================================
   SOS INFO SÁV
   ========================================================================== */

.sos-slot-info {
  display: none;
  background: var(--orange-light);
  border: 1px solid rgba(230, 126, 34, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  align-items: flex-start;
  gap: 10px;
  animation: fadeInStep 0.3s ease;
}

.sos-slot-info.visible {
  display: flex;
}

.sos-slot-info i {
  color: var(--orange);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.sos-slot-info-body {
  flex: 1;
}

.sos-slot-info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 2px;
}

.sos-slot-info-text {
  font-size: 12px;
  color: rgba(230, 126, 34, 0.85);
  line-height: 1.5;
}

/* ==========================================================================
   BETÖLTÉSI HIBAÁLLAPOT
   ========================================================================== */

.slot-load-error {
  display: none;
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.slot-load-error.visible {
  display: block;
}

.slot-load-error i {
  font-size: 24px;
  color: var(--text-red);
  display: block;
  margin-bottom: 8px;
}

.btn-retry-slots {
  margin-top: 10px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--text-red);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-retry-slots:hover {
  background: rgba(200, 16, 46, 0.2);
}

/* ==========================================================================
   MUNKA TÍPUSA VÁLASZTÓ (SOS / TERVEZETT)
   ========================================================================== */

.job-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.job-type-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.job-type-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* SOS kiválasztva */
.job-type-card[data-type="SOS"].selected,
.job-type-card[id="btnSos"][aria-pressed="true"] {
  border-color: rgba(230, 126, 34, 0.7);
  background: var(--orange-light);
  animation: pulse-red 1.5s infinite;
}

/* PLANNED kiválasztva */
.job-type-card[data-type="PLANNED"].selected,
.job-type-card[id="btnPlanned"][aria-pressed="true"] {
  border-color: rgba(52, 152, 219, 0.7);
  background: var(--blue-light);
}

.job-type-icon {
  font-size: 28px;
  line-height: 1;
}

.job-type-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.job-type-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.job-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 2px;
}

.sos-badge {
  background: var(--orange-light);
  border: 1px solid rgba(230, 126, 34, 0.35);
  color: var(--orange);
}

.planned-badge {
  background: var(--blue-light);
  border: 1px solid rgba(52, 152, 219, 0.35);
  color: var(--blue);
}

/* ==========================================================================
   IDŐPONTOK SZEKCIÓ (PLANNED esetén)
   ========================================================================== */

.slots-section {
  animation: fadeInStep 0.3s ease;
}

.slots-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.slots-label i {
  color: var(--red);
  font-size: 13px;
}

.slots-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   SOS INFÓ SÁV (azonnali kiszállás tájékoztató)
   ========================================================================== */

.sos-info {
  background: var(--orange-light);
  border: 1px solid rgba(230, 126, 34, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: fadeInStep 0.3s ease;
}

.sos-info-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.sos-info strong {
  display: block;
  font-size: 14px;
  color: var(--orange);
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sos-info p {
  font-size: 13px;
  color: rgba(230, 126, 34, 0.85);
  line-height: 1.6;
}

.tel-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
