/* Event Frontend Styles */
.event-details {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.event-details h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 5px;
}

.event-details > div {
  margin-bottom: 15px;
}

.event-details > div:last-child {
  margin-bottom: 0;
}

.event-details strong {
  display: inline-block;
  min-width: 80px;
  color: #555;
}

.event-details a {
  color: #0073aa;
  text-decoration: none;
}

.event-details a:hover {
  text-decoration: underline;
}

/* Upcoming Events Shortcode */
.upcoming-events {
  display: grid;
  gap: 20px;
}

.event-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.event-image img {
  width: 100%;
  height: auto;
  display: block;
}

.event-content {
  padding: 15px;
}

.event-title {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.event-title a {
  color: #333;
  text-decoration: none;
}

.event-title a:hover {
  color: #0073aa;
}

.event-meta {
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #666;
}

.event-meta > div {
  margin-bottom: 5px;
}

.event-excerpt {
  margin-bottom: 15px;
  line-height: 1.5;
}

.event-link .button {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9em;
}

.event-link .button:hover {
  background: #005a87;
  color: #fff;
}

/* Event List Shortcode */
.event-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-list-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.event-list-item:last-child {
  border-bottom: none;
}

.event-list-item a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.event-list-item a:hover {
  text-decoration: underline;
}

.event-date {
  color: #666;
  font-size: 0.9em;
}

/* Single Event Shortcode */
.single-event-shortcode {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  background: #fff;
}

.single-event-shortcode h3 {
  margin-top: 0;
  color: #333;
}

.single-event-shortcode .event-image {
  margin-bottom: 15px;
}

.single-event-shortcode .event-image img {
  max-width: 100%;
  height: auto;
}

.single-event-shortcode .event-content {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 768px) {
  .upcoming-events {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .event-item {
    display: flex;
    flex-direction: column;
  }

  .event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .event-link {
    margin-top: auto;
  }
}

@media (min-width: 1024px) {
  .upcoming-events {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Archive Page Styles */
.post-type-archive-event .site-main {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .post-type-archive-event .site-main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Single Event Page */
.single-event .entry-header {
  margin-bottom: 20px;
}

.single-event .entry-content {
  line-height: 1.6;
}

/* Admin Styles for Event List */
.wp-admin .column-event_start_date,
.wp-admin .column-event_location,
.wp-admin .column-event_organizer {
  width: 15%;
}

.wp-admin .column-event_start_date {
  white-space: nowrap;
}
