/**
 * Group Travel Page Styles
 * Modern, semantic, mobile-first design
 */

/* ===== BASE STYLES ===== */
.group-travel-page {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Simple Page Title (no blue box) */
.page-title-simple {
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.page-title-simple h1 {
  font-family: 'Cooper Black', 'Trebuchet MS', Arial, sans-serif;
  font-size: 2rem;
  color: #101F48;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Group Info Box (Bottom) */
.group-info-box {
  background: linear-gradient(135deg, #21275E 0%, #101F48 100%);
  color: white;
  padding: 2rem 1.5rem;
  margin: 3rem 0 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(33, 39, 94, 0.15);
}

.group-info-box h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
  color: white;
}

.group-info-box p {
  font-size: 1rem;
  margin: 0.75rem 0;
  line-height: 1.6;
}

.group-info-box .group-requirements {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.group-info-box .group-requirements li {
  padding: 0.5rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.group-info-box .group-requirements li:last-child {
  border-bottom: none;
}

.group-info-box .contact-info {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.group-info-box a {
  color: #01b7f2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.group-info-box a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/* ===== SECTION HEADERS ===== */
.trips-section {
  margin: 3rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #21275E;
}

.section-header h2 {
  font-family: 'Cooper Black', 'Trebuchet MS', Arial, sans-serif;
  font-size: 1.75rem;
  color: #101F48;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-icon {
  font-size: 2rem;
}

/* ===== TRIP CARDS ===== */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  grid-auto-rows: 1fr;
}

.trip-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.trip-card:hover {
  border-color: #9E7638;
  box-shadow: 0 8px 24px rgba(158, 118, 56, 0.15);
  transform: translateY(-4px);
}

.trip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9E7638, #B8860B);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trip-card:hover::before {
  opacity: 1;
}

/* ===== TRIP CARD ELEMENTS ===== */
.trip-dates {
  display: inline-block;
  background: #9E7638;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.trip-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #101F48;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.trip-title a {
  color: #101F48;
  text-decoration: none;
  transition: color 0.2s ease;
}

.trip-title a:hover {
  color: #21275E;
}

.trip-description {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.trip-host {
  font-size: 0.875rem;
  color: #9E7638;
  font-style: italic;
  margin: 0.5rem 0;
}

.trip-price {
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
  margin: 0.75rem 0;
}

.trip-note {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  margin: 0.5rem 0;
}

.trip-note .inline-link {
  color: #101F48;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.trip-note .inline-link:hover {
  color: #21275E;
}

/* ===== TRIP ACTIONS ===== */
.trip-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: #21275E;
  color: white;
}

.btn-primary:hover {
  background: #9E7638;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(158, 118, 56, 0.3);
}

.btn-secondary {
  background: white;
  color: #101F48;
  border-color: #101F48;
}

.btn-secondary:hover {
  background: #9E7638;
  color: white;
  border-color: #9E7638;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* ===== STATUS BADGES ===== */
.trip-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-new {
  background: #059669;
  color: white;
}

.status-filling {
  background: #dc2626;
  color: white;
}

.status-coming-soon {
  background: #9E7638;
  color: white;
}

/* ===== SUB-ITEMS (Registration Forms, etc.) ===== */
.trip-sub-items {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.trip-sub-items a {
  display: inline-block;
  color: #101F48;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.trip-sub-items a:hover {
  color: #21275E;
  text-decoration: underline;
}

.trip-sub-items a::before {
  content: '→ ';
  color: #21275E;
}

/* ===== DIVIDERS ===== */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #21275E, transparent);
  margin: 3rem 0;
  border: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .page-title-simple h1 {
    font-size: 1.75rem;
  }

  .group-info-box {
    padding: 1.5rem 1rem;
  }

  .group-info-box h3 {
    font-size: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .trips-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .trip-card {
    padding: 1.25rem;
  }

  .trip-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-title-simple {
    padding: 1rem 0;
  }

  .page-title-simple h1 {
    font-size: 1.5rem;
  }

  .group-info-box {
    padding: 1.25rem 0.75rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.trip-title a:focus,
.trip-sub-items a:focus {
  outline: 3px solid #21275E;
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .trip-card {
    page-break-inside: avoid;
    border: 1px solid #333;
    box-shadow: none;
  }

  .trip-card:hover {
    transform: none;
  }

  .btn {
    display: none;
  }

  .group-info-box {
    background: #f5f5f5;
    color: #333;
  }

  .group-info-box h3 {
    color: #333;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
