/* Events Calendar Styles */

.simple-events-calendar-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.simple-events-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.simple-events-calendar-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 5px 0;
}

.simple-events-calendar-subtitle {
  color: #718096;
  font-size: 14px;
  margin: 0;
}

.simple-events-calendar-view-toggle {
  display: flex;
  gap: 10px;
  background: #f7fafc;
  padding: 4px;
  border-radius: 8px;
}

.simple-events-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: var(--calendar-view-btn-bg, transparent);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--calendar-view-btn-text, #4a5568);
  
}


.simple-events-view-btn.active {
  background: var(--calendar-view-btn-active-bg, #111827);
  color: var(--calendar-view-btn-active-text, white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Calendar View */
.simple-events-calendar-view {
  display: none;
}

.simple-events-calendar-view.active {
  display: block;
}

.simple-events-calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.simple-events-calendar-month {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

/* Made navigation arrows much more prominent with larger size, bold icons, and stronger styling */
.simple-events-calendar-prev,
.simple-events-calendar-next {
  border: 3px solid var(--calendar-nav-border, #111827);
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  
  color: var(--calendar-nav-text, #111827);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

/* Ensure SVG icons inside buttons are visible and styled properly */
.simple-events-calendar-prev svg,
.simple-events-calendar-next svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: var(--calendar-nav-text, #111827);
  stroke-width: 3;
  fill: none;
  
}


.simple-events-calendar-prev:active,
.simple-events-calendar-next:active {
  
}

.simple-events-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.simple-events-calendar-day-header {
  background: var(--calendar-header-bg, #111827);
  color: var(--calendar-header-text, white);
  padding: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.simple-events-calendar-day {
  background: white;
  padding: 15px;
  min-height: 80px;
  cursor: pointer;
  position: relative;
  
}


.simple-events-calendar-day.other-month {
  background: #f7fafc;
  color: #cbd5e0;
}

.simple-events-calendar-day.has-events {
  background: #edf2f7;
  font-weight: 700;
}

.simple-events-calendar-day.has-events::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--calendar-header-bg, #f59e0b);
  border-radius: 50%;
}

.simple-events-calendar-day.selected {
  background: var(--calendar-header-bg, #111827);
  color: white;
}

/* Events List for Selected Date */
.simple-events-calendar-events-list {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.simple-events-events-date-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a202c;
}

.simple-events-event-card-mini {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 15px;
  
}


.simple-events-event-card-mini h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.simple-events-event-card-mini h5 a {
  color: #1a202c;
  text-decoration: none;
}


.simple-events-event-mini-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #718096;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.simple-events-event-mini-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.simple-events-btn-details-small,
.simple-events-btn-register-small {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  
}

.simple-events-btn-details-small {
  background: #e2e8f0;
  color: #2d3748;
}


.simple-events-btn-register-small {
  background: var(--calendar-header-bg, #111827);
  color: white;
}


/* List View */
.simple-events-list-view {
  display: none;
}

.simple-events-list-view.active {
  display: block;
}

.simple-events-events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.simple-events-event-list-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  
}


.simple-events-event-date-badge {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: var(--calendar-header-bg, #111827);
  color: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.simple-events-badge-month {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.simple-events-badge-day {
  font-size: 28px;
  font-weight: 700;
}

.simple-events-event-list-content {
  flex: 1;
}

.simple-events-event-list-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.simple-events-event-list-title a {
  color: #1a202c;
  text-decoration: none;
}


.simple-events-event-list-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #718096;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.simple-events-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.simple-events-event-list-excerpt {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.simple-events-event-list-actions {
  display: flex;
  gap: 10px;
}

/* No Events Message */
.simple-events-no-events-message {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
}

.simple-events-no-events-message svg {
  margin-bottom: 20px;
}

.simple-events-no-events-message h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
}

/* Stripe Checkout Button */
.simple-events-stripe-checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #635bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  
}


.simple-events-stripe-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .simple-events-calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .simple-events-calendar-day {
    min-height: 60px;
    padding: 10px;
    font-size: 14px;
  }

  .simple-events-calendar-day-header {
    padding: 10px;
    font-size: 12px;
  }

  .simple-events-event-list-item {
    flex-direction: column;
  }

  .simple-events-event-date-badge {
    width: 60px;
    height: 60px;
  }
}

/* Card View Styles */
.simple-events-cards-view {
    display: none;
    padding: 30px 0;
}

.simple-events-cards-view.active {
    display: block;
}

.simple-events-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.simple-events-event-card-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    
    cursor: pointer;
    display: flex;
    flex-direction: column;
}


.simple-events-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #F3F4F6;
}

.simple-events-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}


.simple-events-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28A745;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simple-events-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.simple-events-card-date {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
}

.simple-events-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.simple-events-card-title a {
    color: #1F2937;
    text-decoration: none;
    
}


.simple-events-card-venue {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
}

.simple-events-card-excerpt {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.simple-events-card-button {
    display: inline-block;
    padding: 12px 24px;
    background: #28A745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    
}


/* Hover Popup Styles */
.simple-events-hover-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.simple-events-hover-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.simple-events-hover-popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.simple-events-hover-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 2;
}


.simple-events-hover-popup-inner {
    padding: 30px;
}

.simple-events-popup-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.simple-events-popup-category {
    display: inline-block;
    background: #28A745;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.simple-events-popup-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #1F2937;
}

.simple-events-popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E5E7EB;
}

.simple-events-popup-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #6B7280;
}

.simple-events-popup-meta-item svg {
    width: 18px;
    height: 18px;
    color: #28A745;
}

.simple-events-popup-excerpt {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 25px;
}

.simple-events-popup-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: #28A745;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        
    }
    to { 
        opacity: 1;
        
    }
}

@media (max-width: 768px) {
    .simple-events-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-events-hover-popup-content {
        max-width: 100%;
        margin: 20px;
    }
    
    .simple-events-popup-title {
        font-size: 22px;
    }
}

/* ========================================
   CARD VIEW - GREEN THEME
   ======================================== */

.simple-events-cards-view {
    display: none;
}

.simple-events-cards-view.active {
    display: block;
}

.simple-events-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.simple-events-event-card-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    
    cursor: pointer;
}


.simple-events-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #F3F4F6;
}

.simple-events-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}


.simple-events-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28A745;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simple-events-card-content {
    padding: 25px;
}

.simple-events-card-date {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
}

.simple-events-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.simple-events-card-title a {
    color: #1F2937;
    text-decoration: none;
    
}


.simple-events-card-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
}

.simple-events-card-excerpt {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.simple-events-card-link {
    display: inline-block;
    padding: 12px 24px;
    background: #28A745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    
}


/* ========================================
   HOVER CARD MODAL (for Calendar & List Views)
   ======================================== */

.simple-events-hover-card {
    position: fixed;
    top: 50%;
    left: 50%;
    
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    
    overflow: hidden;
}

.simple-events-hover-card.active {
    opacity: 1;
    visibility: visible;
    
}

.simple-events-hover-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    
    backdrop-filter: blur(4px);
}

.simple-events-hover-card-overlay.active {
    opacity: 1;
    visibility: visible;
}

.simple-events-hover-card-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    
}


.simple-events-hover-card-close svg {
    width: 20px;
    height: 20px;
    stroke: #1F2937;
}

.simple-events-hover-card-image {
    position: relative;
    height: 200px;
    background: #F3F4F6;
    overflow: hidden;
}

.simple-events-hover-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simple-events-hover-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28A745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.simple-events-hover-card-content {
    padding: 30px;
}

.simple-events-hover-card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
    color: #1F2937;
}

.simple-events-hover-card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.simple-events-hover-card-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #6B7280;
}

.simple-events-hover-card-meta-item svg {
    width: 20px;
    height: 20px;
    color: #28A745;
    flex-shrink: 0;
}

.simple-events-hover-card-excerpt {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.simple-events-hover-card-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: #28A745;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    
}


/* Make calendar and list items clickable */
.simple-events-calendar-grid .simple-events-calendar-day.has-event,
.simple-events-list-item {
    cursor: pointer;
    
}

    
    .simple-events-hover-card {
        width: 95%;
        max-width: none;
    }
    
    .simple-events-hover-card-content {
        padding: 20px;
    }
}
