/**
 * @file
 * Styles for event cards in Views lists.
 */

/* General Event Card Styles */
.event-list-card,
.event-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.event-list-card:hover,
.event-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #0066cc;
}

/* Event Card Header */
.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.event-title-section {
  flex: 1;
}

.event-title {
  margin: 0 0 5px 0;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.3;
}

.event-title .event-link {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.event-title .event-link:hover {
  color: #004499;
  text-decoration: underline;
}

.event-id {
  font-size: 0.85em;
  color: #666;
  font-weight: normal;
}

.event-status-indicators {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

/* Status Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.category-1 {
  background: #ff6b35;
  color: white;
}

.status-badge.category-2 {
  background: #f7931e;
  color: white;
}

.status-badge.current-event {
  background: #28a745;
  color: white;
}

.status-badge.upcoming-event {
  background: #007bff;
  color: white;
}

.event-id-badge {
  background: #6c757d;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
}

/* Event Card Body */
.event-card-body {
  margin-bottom: 15px;
}

.event-primary-info {
  margin-bottom: 15px;
}

.event-dates-section,
.event-location-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dates-icon,
.location-icon {
  font-size: 1.2em;
  width: 20px;
  text-align: center;
}

.dates-content,
.location-content {
  flex: 1;
  font-weight: 500;
}

.location-tbd {
  color: #999;
  font-style: italic;
}

/* Secondary Information */
.event-secondary-info {
  padding-top: 10px;
  border-top: 1px solid #f5f5f5;
}

.event-categories-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.sport-info,
.disciplines-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-label {
  font-weight: 600;
  color: #555;
  font-size: 0.9em;
}

.sport-value,
.disciplines-value {
  color: #333;
}

/* Event Card Footer */
.event-card-footer {
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.event-actions-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.event-links-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Action Buttons */
.event-action-btn,
.view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.minisite-btn {
  background: #0066cc;
  color: white;
}

.minisite-btn:hover {
  background: #0052a3;
  color: white;
  text-decoration: none;
}

.view-details-btn {
  background: transparent;
  color: #0066cc;
  border: 1px solid #0066cc;
}

.view-details-btn:hover {
  background: #0066cc;
  color: white;
  text-decoration: none;
}

.btn-icon {
  font-size: 1em;
}

.btn-arrow {
  font-weight: bold;
  transition: transform 0.3s ease;
}

.view-details-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* External Link Styling */
.external-link-container {
  display: inline-block;
}

.external-link-container a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  transition: background 0.3s ease;
}

.external-link-container a:hover {
  background: #218838;
  color: white;
  text-decoration: none;
}

/* Views List Wrapper Styles */
.events-list-wrapper,
.current-events-list,
.upcoming-cat1-events-list,
.upcoming-cat2-events-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Category-specific styling */
.current-event-item {
  border-left: 4px solid #28a745;
}

.upcoming-cat1-event-item {
  border-left: 4px solid #ff6b35;
}

.upcoming-cat2-event-item {
  border-left: 4px solid #f7931e;
}

.priority-event {
  position: relative;
}

.priority-event::before {
  content: "⭐";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2em;
}

/* First and Last Event Styling */
.first-event {
  margin-top: 0;
}

.last-event {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .event-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .event-status-indicators {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .event-actions-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .event-links-group {
    justify-content: center;
  }
  
  .view-details-section {
    text-align: center;
  }
  
  .event-categories-section {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .event-list-card,
  .event-card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .event-title {
    font-size: 1.1em;
  }
  
  .event-action-btn,
  .view-details-btn {
    padding: 10px 15px;
    width: 100%;
    justify-content: center;
  }
}