/* MotoXpress v3.5.2 - San Juan Edition | Dark Premium Bottom Sheet for Driver Review */

/* Contenedor Modal - Bloqueo de Interacción */
#driver-profile-review-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999; /* Z-Index Crítico */
  background: rgba(0, 0, 0, 0.85); /* Fondo más oscuro para resaltar glow */
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

#driver-profile-review-modal.active {
  opacity: 1;
  visibility: visible;
  display: block !important;
}

/* Panel Interno (Bottom Sheet) */
#driver-profile-review-modal .panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 75vh; /* Un poco más de aire */

  /* Centrado y Flexbox */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(10, 10, 10, 1) 100%
  );
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  padding: 25px 20px 50px 20px;

  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 215, 0, 0.1);

  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#driver-profile-review-modal .panel-content::-webkit-scrollbar {
  display: none;
}

#driver-profile-review-modal.active .panel-content {
  transform: translateY(0) !important;
}

/* Slide-out Animation Class */
.panel-content.slide-out-bottom {
  transform: translateY(100%) !important;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* HANDLE (Tirador Visual) */
#driver-profile-review-modal .panel-content::before {
  content: "";
  display: block;
  width: 50px; /* Más ancho */
  height: 5px;
  background: #444;
  border-radius: 10px;
  margin-bottom: 25px;
  flex-shrink: 0;
}

/* Typography */
.profile-review-title {
  color: #fff; /* Blanco puro como referencia */
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 30px; /* Más separación del titulo al avatar */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: "Outfit", sans-serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* AVATAR GLOW (Referencia Imagen 2) */
.driver-photo-container {
  position: relative;
  width: 140px;
  height: 140px;
  min-width: 140px; /* BLOQUEO DE DEFORMACIÓN */
  min-height: 140px; /* BLOQUEO DE DEFORMACIÓN */
  flex-shrink: 0; /* CRÍTICO: Impide que Flexbox lo aplaste */
  aspect-ratio: 1/1; /* Geometría perfecta */

  margin: 0 auto 20px auto;
  border-radius: 50%;

  /* Efecto de Luz Interna y Borde */
  border: 2px solid rgba(255, 215, 0, 0.4);
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.15) 0%,
    rgba(0, 0, 0, 1) 70%
  );
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Imagen real o Icono Fallback */
.driver-photo-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

.driver-name-large {
  color: white;
  font-size: 1.8rem; /* Nombre más grande */
  font-weight: 800;
  margin: 10px 0 5px 0;
  letter-spacing: 0.5px;
}

.rating-display-large {
  background: rgba(40, 40, 40, 0.6);
  padding: 8px 20px;
  border-radius: 30px;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rating-display-large .star-icon {
  font-size: 1.2rem;
  color: #ffd700;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.rating-display-large .rating-value {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.profile-review-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: 20px;
}

.btn-accept-driver,
.btn-reject-driver {
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-accept-driver:active,
.btn-reject-driver:active {
  transform: scale(0.98);
}

.btn-accept-driver {
  background: linear-gradient(
    135deg,
    #ffd700,
    #d4af37
  ); /* Degradado Dorado/Amarillo */
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-accept-driver:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-reject-driver {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #ff5555;
  border: 2px solid #ff5555;
}

.btn-reject-driver:hover {
  background: #ff5555;
  color: white;
}
