/**
 * Awesome Events - General Styles
 * General CSS shared between calendar and list views
 */
/**
 * SCSS Variables
 * Only breakpoints are defined as SCSS variables
 * (CSS variables don't work in media queries)
 */
.awesome-events-calendar-wrapper {
  margin: 20px 0;
  position: relative;
}

/* Event Details Modal - Used by both calendar and list views */
.ae-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
}

.ae-modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ae-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.ae-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.ae-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 10px;
}

.ae-modal-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ae-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.ae-modal-info {
  padding: 15px 20px;
  color: #666;
  font-size: 14px;
}

.ae-modal-date,
.ae-modal-time,
.ae-modal-venue,
.ae-modal-organizers {
  margin-bottom: 4px;
}

.ae-modal-date strong,
.ae-modal-time strong,
.ae-modal-venue strong,
.ae-modal-organizers strong {
  font-weight: 600;
  color: #333;
  margin-right: 6px;
}

.ae-modal-venue,
.ae-modal-authors {
  color: #666;
  font-size: 14px;
}

.ae-modal-venue strong,
.ae-modal-authors strong {
  flex-shrink: 0;
  color: #333;
  font-weight: 600;
}

.ae-modal-categories {
  padding: 0 20px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ae-modal-category {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 12px;
  background: #e9ecef;
  color: #495057;
}

.ae-modal-description {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.ae-modal-description * + p, .ae-modal-description p + p {
  margin-top: 6px;
}

.ae-modal-link {
  padding: 15px 20px;
  border-top: 1px solid #eee;
}
.ae-modal-link a {
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ae-modal-link a:hover {
  text-decoration: underline;
}

.ae-modal-actions {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.ae-edit-event-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.ae-edit-event-link:hover {
  background: #005a87;
  text-decoration: none;
  color: #fff;
}

/* Responsive: stack on smaller screens */
@media (max-width: 600px) {
  .awesome-events-calendar-wrapper.ae-with-categories {
    flex-direction: column;
  }
  .ae-categories-sidebar {
    width: 100%;
  }
  .ae-categories-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ae-category-item {
    flex: 0 0 auto;
  }
}