/* trips/static/trips/css/trip-card.css
   Unified trip card component — image with gradient overlay, white text at bottom.
   Used on home, explore, my-trips, and profile pages. */

/* ========================================
   BASE CARD
   ======================================== */

.trip-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.trip-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 30px -5px rgba(0, 0, 0, 0.15),
    0 10px 15px -6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #fff;
}

/* ========================================
   CARD IMAGE
   ======================================== */

.trip-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-card__image--placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ========================================
   GRADIENT OVERLAY
   ======================================== */

.trip-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* ========================================
   CARD CONTENT (positioned at bottom)
   ======================================== */

.trip-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
}

/* ========================================
   LOCATION LABEL
   ======================================== */

.trip-card__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.trip-card__location i {
  font-size: 0.875rem;
}

/* ========================================
   TITLE
   ======================================== */

.trip-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.33;
  color: #fff;
  margin: 0;
}

/* ========================================
   META ROW (duration + stops)
   ======================================== */

.trip-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.trip-card__duration {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.trip-card__duration i {
  font-size: 0.875rem;
}

.trip-card__stops {
  font-weight: 700;
  font-size: 1rem;
}

/* ========================================
   OWNER BADGE
   ======================================== */

.trip-card__owner {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
}

.trip-card__owner i {
  font-size: 0.75rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 600px) {
  .trip-card__title {
    font-size: 1.25rem;
  }

  .trip-card__content {
    padding: 1.25rem;
  }
}
