/* Advanced Events Calendar Styles */

/* Calendar Wrapper */
.aec-calendar-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.aec-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

/* View Switcher */
.aec-view-switcher {
  display: flex;
  gap: 5px;
}

.aec-view-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.aec-view-btn:hover {
  background: #f5f5f5;
}

.aec-view-btn.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* Calendar Navigation */
.aec-calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aec-nav-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.aec-nav-btn:hover {
  background: #f5f5f5;
}

#aec-current-month {
  margin: 0;
  font-size: 20px;
  min-width: 200px;
  text-align: center;
}

/* Month View */
.aec-calendar-month {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aec-calendar-month thead th {
  padding: 15px;
  width: 14.2857%;
  background: #f5f5f5;
  border: 1px solid #ddd;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  color: #555;
}

.aec-calendar-month tbody td {
  padding: 8px;
  border: 1px solid #ddd;
  vertical-align: top;
  height: 100px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.aec-day-number {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.aec-day.aec-other-month {
  background: #f9f9f9;
}

.aec-day.aec-other-month .aec-day-number {
  color: #999;
}

.aec-day.aec-today {
  background: #e7f4f9;
}

.aec-day.aec-today .aec-day-number {
  color: #0073aa;
  font-weight: 700;
}

/* Events in Month View */
.aec-events {
  margin-top: 5px;
}

.aec-event {
  display: block;
  padding: 4px 6px;
  margin-bottom: 3px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  border-radius: 3px;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
  max-height: 120px;
  transition: all 0.2s ease;
}

.aec-event:hover {
  background: #005a87;
  transform: translateX(2px);
}

.aec-event-time {
  font-weight: 600;
  margin-right: 4px;
}

/* Week View */
.aec-week-view {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.aec-week-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border-bottom: 2px solid #ddd;
  background: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.aec-week-time-spacer {
  border-right: 1px solid #ddd;
  background: #fafafa;
}

.aec-week-day-header {
  padding: 15px 10px;
  text-align: center;
  border-right: 1px solid #ddd;
}

.aec-week-day-header.aec-today {
  background: #e7f4f9;
}

.aec-day-name {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
}

.aec-day-number {
  font-size: 18px;
  font-weight: 700;
}

.aec-week-day-header.aec-today .aec-day-number {
  color: #0073aa;
}

.aec-week-body {
  min-height: 600px;
}

.aec-time-row {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  min-height: 60px;
  border-bottom: 1px solid #eee;
}

.aec-time-label {
  padding: 10px;
  text-align: right;
  font-size: 12px;
  color: #666;
  border-right: 1px solid #ddd;
  background: #fafafa;
}

.aec-week-cell {
  padding: 5px;
  border-right: 1px solid #eee;
  position: relative;
  min-height: 60px;
}

.aec-week-event {
  display: block;
  padding: 6px 8px;
  margin-bottom: 5px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  border-radius: 3px;
  border-left: 3px solid #005a87;
  transition: all 0.2s ease;
  overflow: hidden;
}

.aec-week-event:hover {
  background: #005a87;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.aec-week-event-time {
  display: block;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 2px;
}

.aec-week-event-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* List View */
.aec-list-view {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.aec-list-date {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.aec-list-date:last-child {
  border-bottom: none;
}

.aec-list-date h3 {
  margin: 0 0 15px 0;
  padding: 10px 15px;
  background: #f5f5f5;
  border-left: 4px solid #0073aa;
  font-size: 18px;
  color: #333;
}

.aec-list-events {
  padding-left: 20px;
}

.aec-list-event {
  display: flex;
  gap: 20px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.aec-list-event:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.aec-list-event-time {
  min-width: 120px;
  font-weight: 600;
  color: #0073aa;
  font-size: 14px;
  padding-top: 2px;
}

.aec-list-event-details {
  flex: 1;
}

.aec-list-event-details h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.aec-list-event-details h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.aec-list-event-details h4 a:hover {
  color: #0073aa;
}

.aec-no-events {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
}

/* Featured Events Section */
.aec-featured-section {
  margin-bottom: 30px;
}

.aec-featured-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
  color: #333;
}

.aec-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.aec-featured-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aec-featured-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.aec-featured-link {
  display: block;
  text-decoration: none;
  position: relative;
}

.aec-featured-image {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  display: block;
}

.aec-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  border-radius: 0 0 12px 12px;
}

.aec-featured-item-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
}

/* Grid View */
.aec-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.aec-grid-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.aec-grid-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.aec-grid-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.aec-grid-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
}

.aec-grid-content {
  padding: 20px;
  display: flex;
  gap: 15px;
}

.aec-grid-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 10px;
  background: #0073aa;
  color: #fff;
  border-radius: 6px;
  text-align: center;
}

.aec-grid-month {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.aec-grid-day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.aec-grid-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aec-grid-time {
  color: #0073aa;
  font-weight: 600;
  font-size: 14px;
}

.aec-grid-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

.aec-grid-link:hover .aec-grid-title {
  color: #0073aa;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .aec-calendar-header {
    flex-direction: column;
    align-items: stretch;
  }

  .aec-view-switcher {
    width: 100%;
  }

  .aec-view-btn {
    flex: 1;
    text-align: center;
  }

  .aec-calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  #aec-current-month {
    font-size: 16px;
    min-width: auto;
  }

  .aec-calendar-month tbody td {
    height: auto;
    min-height: 80px;
    padding: 5px;
  }

  .aec-day-number {
    font-size: 12px;
  }

  .aec-event {
    font-size: 10px;
    padding: 2px 4px;
  }

  .aec-event-time {
    display: none;
  }

  .aec-week-header {
    grid-template-columns: 60px repeat(7, minmax(80px, 1fr));
  }

  .aec-time-row {
    grid-template-columns: 60px repeat(7, minmax(80px, 1fr));
  }

  .aec-time-label {
    font-size: 10px;
    padding: 5px;
  }

  .aec-week-event {
    font-size: 10px;
    padding: 4px 6px;
  }

  .aec-list-event {
    flex-direction: column;
    gap: 10px;
  }

  .aec-list-event-time {
    min-width: auto;
  }

  .aec-grid-view {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .aec-grid-image {
    height: 180px;
  }
}

@media screen and (max-width: 480px) {
  .aec-calendar-wrapper {
    padding: 10px;
  }

  .aec-calendar-month thead th {
    padding: 8px 4px;
    font-size: 10px;
  }

  .aec-calendar-month tbody td {
    padding: 3px;
  }

  .aec-events {
    display: none;
  }

  .aec-day.aec-today .aec-day-number::after {
    content: "•";
    display: block;
    color: #0073aa;
    font-size: 20px;
    line-height: 10px;
  }

  .aec-grid-view {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .aec-grid-image {
    height: 200px;
  }

  .aec-grid-content {
    padding: 15px;
  }
}

/* ===========================
   Event Details Card Styles
   =========================== */

.aec-event-details-card {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  overflow: visible;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
}

/* Back to Calendar Link at Top */
.aec-back-to-calendar-top {
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
}

.aec-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.aec-back-link:hover {
  color: #005a87;
}

.aec-back-link .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Header Section with Image and Title/Meta */
.aec-event-details-header {
  display: flex;
  gap: 30px;
  padding: 30px;
  border-bottom: 1px solid #e9ecef;
}

.aec-event-details-image {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aec-event-details-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
}

.aec-event-details-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Legacy Hero Image styles - kept for backward compatibility but not used in new layout */
.aec-event-details-hero {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  display: none; /* Hidden in new layout */
}

.aec-event-details-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aec-event-details-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}
/* End legacy styles */

/* Content Area */
.aec-event-details-content {
  padding: 35px 40px 40px;
}

.aec-event-details-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Meta Section */
.aec-event-details-meta {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
}

.aec-event-details-row {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.aec-event-details-row:first-child {
  padding-top: 0;
}

.aec-event-details-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.aec-detail-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.aec-detail-icon {
  color: #0073aa;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.aec-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aec-detail-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
}

.aec-detail-value {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.aec-detail-value strong {
  color: #1a1a1a;
  font-weight: 600;
}

.aec-location-address {
  color: #6c757d;
  font-size: 14px;
}

.aec-directions-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0073aa;
  text-decoration: none;
  transition: all 0.2s ease;
}

.aec-directions-link:hover {
  color: #005a87;
  text-decoration: none;
}

/* Organizer Contacts */
.aec-organizer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.aec-organizer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #0073aa;
  text-decoration: none;
  padding: 6px 12px;
  background: #fff;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.aec-organizer-contacts a:hover {
  background: #0073aa;
  color: #fff;
}

.aec-organizer-contacts a .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Map Section */
.aec-event-details-map {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.aec-event-details-map iframe {
  display: block;
}

/* Description Section */
.aec-event-details-description {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.aec-section-title {
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.aec-event-details-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}

.aec-event-details-description p:last-child {
  margin-bottom: 0;
}

/* Recurrence dates list (for Elementor widget) */
.aec-recurrence-dates {
  list-style: none;
  margin: 15px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.aec-recurrence-dates li {
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
}

/* Organizer contact info (for Elementor widget) */
.aec-organizer-contact {
  margin-top: 10px;
  font-size: 14px;
}

.aec-organizer-contact div {
  margin-bottom: 6px;
}

.aec-organizer-contact a {
  color: #0073aa;
  text-decoration: none;
}

.aec-organizer-contact a:hover {
  text-decoration: underline;
}

/* Event Map Widget */
.aec-event-map {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.aec-event-map iframe {
  display: block;
  width: 100%;
}

/* Responsive Event Details */
@media screen and (max-width: 768px) {
  .aec-event-details-header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .aec-event-details-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  
  .aec-event-details-image img {
    min-height: 200px;
  }

  .aec-event-details-content {
    padding: 25px 20px 30px;
  }

  .aec-event-details-title {
    font-size: 26px;
  }

  .aec-event-details-meta {
    padding: 20px;
  }

  .aec-event-details-row {
    padding: 12px 0;
  }

  .aec-detail-icon-wrap {
    width: 38px;
    height: 38px;
    margin-right: 14px;
  }

  .aec-detail-icon {
    font-size: 18px;
  }

  .aec-detail-value {
    font-size: 15px;
  }

  .aec-organizer-contacts {
    flex-direction: column;
    gap: 8px;
  }

  .aec-organizer-contacts a {
    width: fit-content;
  }

  .aec-recurrence-dates {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .aec-event-details-card {
    border-radius: 0;
    box-shadow: none;
  }
  
  .aec-back-to-calendar-top {
    padding: 12px 15px;
  }
  
  .aec-event-details-header {
    padding: 15px;
  }
  
  .aec-event-details-image img {
    min-height: 180px;
  }

  .aec-event-details-content {
    padding: 20px 15px 25px;
  }

  .aec-event-details-title {
    font-size: 22px;
  }

  .aec-event-details-meta {
    padding: 15px;
  }

  .aec-event-details-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .aec-detail-icon-wrap {
    width: 36px;
    height: 36px;
    margin-right: 12px;
  }

  .aec-section-title {
    font-size: 18px;
  }

  .aec-event-details-description p {
    font-size: 15px;
  }
}

/* ===========================
   Add to Calendar Styles
   =========================== */

.aec-add-to-calendar-wrapper {
  display: inline-block;
  position: relative;
}

/* Dropdown Style */
.aec-add-to-calendar-wrapper .aec-cal-dropdown-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  padding: 10px 20px;
  background: var(--e-global-color-accent, #0073aa);
  color: #fff !important;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.aec-add-to-calendar-wrapper .aec-cal-dropdown-btn:hover {
  background: var(--e-global-color-accent, #0073aa);
  filter: brightness(0.88);
  color: #fff !important;
}

.aec-add-to-calendar-wrapper .aec-cal-dropdown-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aec-cal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* Bridge the gap between button and dropdown to prevent hover loss */
.aec-cal-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 15px;
}

.aec-add-to-calendar-wrapper:hover .aec-cal-dropdown,
.aec-add-to-calendar-wrapper:focus-within .aec-cal-dropdown {
  display: block;
}

.aec-cal-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.aec-cal-dropdown a:hover {
  background: #f5f5f5;
}

/* Calendar Icons */
.aec-cal-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.aec-google-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285f4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334a853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23fbbc05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23ea4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
}

.aec-outlook-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230078d4' d='M24 7.387v10.478c0 .23-.08.424-.238.576-.158.154-.352.23-.58.23h-8.547v-6.959l1.6 1.229c.102.086.221.127.357.127.136 0 .255-.041.357-.127l6.713-5.246c.088-.063.158-.14.213-.234.055-.093.082-.194.082-.304 0-.165-.07-.299-.213-.4-.14-.1-.307-.15-.498-.15h-.4v-.66c0-.23-.08-.424-.238-.576-.158-.154-.352-.23-.58-.23H14.636V3.72c0-.273.098-.507.295-.703.197-.197.43-.295.704-.295h7.365c.273 0 .508.098.705.295.196.196.295.43.295.703v3.668zM8.818 15.545c1.378 0 2.55-.487 3.518-1.46.968-.974 1.452-2.144 1.452-3.51 0-1.365-.484-2.535-1.452-3.508-.968-.974-2.14-1.461-3.518-1.461-1.38 0-2.553.487-3.52 1.46-.968.974-1.453 2.144-1.453 3.51 0 1.365.485 2.535 1.453 3.509.967.973 2.14 1.46 3.52 1.46zm0-8.182c.958 0 1.77.344 2.435 1.032.665.687.998 1.514.998 2.48 0 .968-.333 1.795-.998 2.482-.665.687-1.477 1.031-2.435 1.031-.959 0-1.772-.344-2.437-1.031-.665-.687-.997-1.514-.997-2.481 0-.967.332-1.794.997-2.481.665-.688 1.478-1.032 2.437-1.032zM0 5.833V19.5c0 .23.08.424.238.576.158.154.352.23.58.23h12.818V5.028H.818c-.228 0-.422.076-.58.23C.08 5.41 0 5.604 0 5.833z'/%3E%3C/svg%3E");
}

.aec-apple-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23555' d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E");
}

/* Inline Style */
.aec-inline-style {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aec-add-to-cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.aec-add-to-cal-btn:hover {
  background: #005a87;
  color: #fff;
  text-decoration: none;
}

/* Icon Buttons Style */
.aec-icons-style {
  display: flex;
  gap: 10px;
}

.aec-icon-btn {
  padding: 10px;
  min-width: 44px;
}

.aec-icon-btn .aec-cal-icon {
  width: 24px;
  height: 24px;
}

/* Shortcode Add to Calendar */
.aec-add-to-cal-shortcode {
  margin: 20px 0;
}

.aec-add-to-cal-shortcode .aec-add-to-calendar-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Add to Calendar in Event Details Card */
.aec-event-details-add-to-calendar {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.aec-event-details-card .aec-add-to-calendar-wrapper {
  display: flex;
  justify-content: flex-start;
}

@media screen and (max-width: 480px) {
  .aec-cal-dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    min-width: auto;
  }

  .aec-inline-style {
    flex-direction: column;
  }

  .aec-add-to-cal-btn {
    width: 100%;
  }
}

/* Loading State */
#aec-calendar-container.aec-loading {
  min-height: 400px;
  position: relative;
  transition: opacity 0.2s ease;
}

#aec-calendar-container.aec-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: aec-spin 1s linear infinite;
}

@keyframes aec-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.aec-error {
  padding: 20px;
  background: #ffebee;
  color: #c62828;
  border-radius: 4px;
  text-align: center;
}
