/**
 * Calendar styles
 *
 * @package Events_Manager_MIT
 */

/* Calendar Container */
.emmit-calendar {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

/* Calendar Header */
.emmit-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.emmit-calendar-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #343a40;
}

.emmit-calendar-nav {
  display: inline-block;
  padding: 8px 16px;
  background-color: #fff;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: all 0.2s ease;
}

.emmit-calendar-nav:hover {
  background-color: #e9ecef;
  color: #212529;
}

/* Calendar Table */
.emmit-calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.emmit-calendar-table th {
  padding: 15px;
  text-align: center;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
  font-weight: 600;
}

.emmit-calendar-day {
  height: 120px;
  padding: 10px;
  border: 1px solid #e9ecef;
  vertical-align: top;
  position: relative;
  transition: background-color 0.2s ease;
}

.emmit-calendar-day:hover {
  background-color: #f8f9fa;
}

.emmit-empty-day {
  background-color: #f8f9fa;
}

.emmit-current-day {
  background-color: #e8f4f8;
}

.emmit-has-events {
  background-color: #f0f9ff;
}

.emmit-day-number {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #495057;
  border-radius: 50%;
}

.emmit-current-day .emmit-day-number {
  background-color: #0073aa;
  color: #fff;
}

.emmit-day-events {
  margin-top: 25px;
  max-height: 80px;
  overflow-y: auto;
}

/* Event Items */
.emmit-calendar-event {
  margin-bottom: 5px;
}

.emmit-calendar-event a {
  display: block;
  padding: 5px 8px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.emmit-calendar-event a:hover {
  background-color: #005177;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.emmit-calendar-event.emmit-featured-event a {
  background-color: #e44d26;
}

.emmit-calendar-event.emmit-featured-event a:hover {
  background-color: #c73e1d;
}

.emmit-event-time {
  font-weight: 600;
  margin-right: 5px;
}

/* Tooltip */
.emmit-event-tooltip {
  position: absolute;
  z-index: 1000;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  width: 200px;
  pointer-events: none;
}

.emmit-tooltip-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #343a40;
}

.emmit-tooltip-time {
  color: #6c757d;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .emmit-calendar-day {
    height: 80px;
  }

  .emmit-day-events {
    max-height: 40px;
  }

  .emmit-calendar-event a {
    padding: 3px 5px;
    font-size: 10px;
  }
}

/* Modern Grid View */
.emmit-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.emmit-event-grid-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.emmit-event-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.emmit-event-grid-item .emmit-event-image {
  height: 200px;
  overflow: hidden;
}

.emmit-event-grid-item .emmit-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.emmit-event-grid-item:hover .emmit-event-image img {
  transform: scale(1.05);
}

.emmit-event-grid-item .emmit-event-details {
  padding: 20px;
}

.emmit-event-grid-item .emmit-event-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #343a40;
}

.emmit-event-grid-item .emmit-event-title a {
  color: #343a40;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.emmit-event-grid-item .emmit-event-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 14px;
}

.emmit-event-grid-item .emmit-event-meta > div {
  margin-right: 15px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.emmit-event-grid-item .emmit-event-meta .dashicons {
  margin-right: 5px;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.emmit-event-grid-item .emmit-event-excerpt {
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 14px;
}

.emmit-event-grid-item .emmit-event-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.emmit-event-grid-item .emmit-event-link:hover {
  background-color: #005177;
}

.emmit-featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #e44d26;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Modern List View */
.emmit-events-list {
  margin-bottom: 30px;
}

.emmit-event-list-item {
  display: flex;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.emmit-event-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.emmit-event-list-item .emmit-event-date-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 80px;
  background-color: #0073aa;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.emmit-event-list-item .emmit-event-month {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.emmit-event-list-item .emmit-event-day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-top: 5px;
}

.emmit-event-list-item .emmit-event-details {
  flex: 1;
  padding: 20px;
}

.emmit-event-list-item .emmit-event-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.emmit-event-list-item .emmit-event-title a {
  color: #343a40;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.emmit-event-list-item .emmit-event-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 14px;
}

.emmit-event-list-item .emmit-event-meta > div {
  margin-right: 15px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.emmit-event-list-item .emmit-event-meta .dashicons {
  margin-right: 5px;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.emmit-event-list-item .emmit-event-excerpt {
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 14px;
}

.emmit-event-list-item .emmit-event-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.emmit-event-list-item .emmit-event-link:hover {
  background-color: #005177;
}

.emmit-event-list-item .emmit-event-image {
  width: 150px;
  overflow: hidden;
}

.emmit-event-list-item .emmit-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.emmit-event-list-item:hover .emmit-event-image img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .emmit-event-list-item {
    flex-direction: column;
  }

  .emmit-event-list-item .emmit-event-date-block {
    width: 100%;
    flex-direction: row;
    padding: 10px;
  }

  .emmit-event-list-item .emmit-event-month,
  .emmit-event-list-item .emmit-event-day {
    margin: 0 5px;
  }

  .emmit-event-list-item .emmit-event-image {
    width: 100%;
    height: 200px;
    order: -1;
  }
}
