/**
 * Events Styles - Harvey Harvest Festival
 * Compiled manually from SCSS
 */

/* Event Cards */
.event-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card.event-featured {
  border: 2px solid #ffc107;
}

.event-card.event-featured .event-featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.event-card.event-featured .event-featured-badge span {
  background: #ffc107;
  color: #212529;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.event-thumbnail {
  position: relative;
  overflow: hidden;
}

.event-thumbnail .event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-thumbnail:hover .event-image {
  transform: scale(1.05);
}

.event-status-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 10;
}

.event-status-badge span {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.event-status-badge .event-status-sold-out {
  background: #dc3545;
  color: white;
}

.event-status-badge .event-status-selling-fast {
  background: #fd7e14;
  color: white;
}

.event-status-badge .event-status-cancelled {
  background: #6c757d;
  color: white;
}

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

.event-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-meta {
  margin-bottom: 15px;
}

.event-meta > div {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #6c757d;
}

.event-meta > div i {
  width: 16px;
  margin-right: 8px;
}

.event-title {
  margin-bottom: 15px;
}

.event-title a {
  color: #212529;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.3;
}

.event-title a:hover {
  color: #007bff;
  text-decoration: none;
}

.event-excerpt {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.event-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.event-actions .btn {
  flex: 1;
  text-align: center;
}

/* Event Archive Page */
.events-banner .tagline {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0;
}

.events-intro {
  text-align: center;
  margin-bottom: 40px;
}

.events-intro .lead {
  font-size: 1.2rem;
  color: #6c757d;
}

/* Event Filters */
.events-filters-wrapper {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.event-filters .filter-group {
  margin-bottom: 20px;
}

.event-filters .filter-group label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
  color: #495057;
}

.event-filters .filter-group .form-control {
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.event-filters .filter-group .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.event-filters .filter-actions {
  text-align: center;
  margin-top: 20px;
}

.event-filters .filter-actions .btn {
  margin: 0 5px;
  min-width: 120px;
}

/* Events Grid */
.events-grid .event-item {
  margin-bottom: 30px;
}

/* No Events Found */
.no-events-found {
  text-align: center;
  padding: 60px 0;
}

.no-events-found .fa-calendar-o {
  opacity: 0.3;
}

.no-events-found h3 {
  margin-bottom: 15px;
}

/* Loading States */
.events-loading {
  text-align: center;
  padding: 40px 0;
}

.events-loading .fa-spinner {
  color: #007bff;
}

/* Single Event Page */
.event-banner .tagline {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.event-banner .event-featured-badge .badge {
  font-size: 0.9rem;
  padding: 8px 16px;
}

.event-banner .event-status-badge .badge {
  font-size: 0.9rem;
  padding: 8px 16px;
}

.event-meta-card .event-meta-item {
  display: flex;
  align-items: flex-start;
}

.event-meta-card .event-meta-item i {
  margin-top: 2px;
}

.event-meta-card .event-meta-item strong {
  color: #495057;
}

.event-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.event-content h2, .event-content h3, .event-content h4, .event-content h5, .event-content h6 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.event-content p {
  margin-bottom: 20px;
}

.event-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

.event-taxonomy .badge {
  margin-right: 8px;
  margin-bottom: 8px;
}

.event-sharing .social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-sharing .social-share-buttons .btn {
  flex: none;
}

/* Event Sidebar */
.event-sidebar .card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-sidebar .card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.event-sidebar .card .card-header h5 {
  color: #495057;
  font-weight: bold;
}

.event-sidebar .related-event-item:last-child {
  border-bottom: none !important;
}

.event-sidebar .related-event-item h6 a {
  color: #495057;
  text-decoration: none;
}

.event-sidebar .related-event-item h6 a:hover {
  color: #007bff;
}

/* Eventbrite Widget */
.eventbrite-widget-container {
  margin: 20px 0;
}

.eventbrite-widget-container iframe {
  width: 100% !important;
  border: none;
  border-radius: 5px;
}

/* Admin Styles */
.wp-admin .event-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.wp-admin .event-status.event-status-upcoming {
  background: #e7f3ff;
  color: #0066cc;
}

.wp-admin .event-status.event-status-selling-fast {
  background: #fff3e0;
  color: #e65100;
}

.wp-admin .event-status.event-status-sold-out {
  background: #ffebee;
  color: #c62828;
}

.wp-admin .event-status.event-status-cancelled {
  background: #f5f5f5;
  color: #666;
}

.wp-admin .event-status.event-status-completed {
  background: #e8f5e8;
  color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 768px) {
  .events-banner .tagline {
    font-size: 2rem;
  }
  
  .event-banner .tagline {
    font-size: 2rem;
  }
  
  .event-card {
    margin-bottom: 20px;
  }
  
  .event-actions {
    flex-direction: column;
  }
  
  .event-actions .btn {
    margin-bottom: 10px;
  }
  
  .events-filters-wrapper {
    padding: 20px;
  }
  
  .event-filters .filter-actions .btn {
    width: 100%;
    margin: 5px 0;
  }
  
  .event-sharing .social-share-buttons {
    flex-direction: column;
  }
  
  .event-sharing .social-share-buttons .btn {
    width: 100%;
  }
}

/* Featured Events Section */
.featured-events-section .event-card {
  border: 2px solid #ffc107;
}

/* Animation Classes */
.event-card.wow {
  visibility: hidden;
}

.event-card.fadeInUp {
  animation-name: fadeInUp;
}