/* NAHSE Events Calendar Styles */

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

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

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

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

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

.nahse-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #4a5568;
  transition: all 0.2s;
}

.nahse-view-btn:hover {
  background: #e2e8f0;
}

.nahse-view-btn.active {
  background: white;
  color: var(--primary-color, #003295);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.nahse-calendar-view.active {
  display: block;
}

.nahse-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);
}

.nahse-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 */
.nahse-calendar-prev,
.nahse-calendar-next {
  border: 3px solid var(--primary-color, #003295);
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--primary-color, #003295);
  box-shadow: 0 2px 8px rgba(0, 50, 149, 0.25);
  padding: 0;
}

/* Ensure SVG icons inside buttons are visible and styled properly */
.nahse-calendar-prev svg,
.nahse-calendar-next svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: var(--primary-color, #003295);
  stroke-width: 3;
  fill: none;
  transition: all 0.3s ease;
}

.nahse-calendar-prev:hover,
.nahse-calendar-next:hover {
  background: var(--primary-color, #003295);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0, 50, 149, 0.4);
}

/* Change SVG stroke color on hover */
.nahse-calendar-prev:hover svg,
.nahse-calendar-next:hover svg {
  stroke: white;
}

.nahse-calendar-prev:active,
.nahse-calendar-next:active {
  transform: scale(1.05);
}

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

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

.nahse-calendar-day {
  background: white;
  padding: 15px;
  min-height: 80px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.nahse-calendar-day:hover {
  background: #f7fafc;
}

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

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

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

.nahse-calendar-day.selected {
  background: var(--primary-color, #003295);
  color: white;
}

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

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

.nahse-event-card-mini {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.2s;
}

.nahse-event-card-mini:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color, #003295);
}

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

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

.nahse-event-card-mini h5 a:hover {
  color: var(--primary-color, #003295);
}

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

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

.nahse-btn-details-small,
.nahse-btn-register-small {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

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

.nahse-btn-details-small:hover {
  background: #cbd5e0;
}

.nahse-btn-register-small {
  background: var(--primary-color, #003295);
  color: white;
}

.nahse-btn-register-small:hover {
  opacity: 0.9;
}

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

.nahse-list-view.active {
  display: block;
}

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

.nahse-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);
  transition: all 0.2s;
}

.nahse-event-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nahse-event-date-badge {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: var(--primary-color, #003295);
  color: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.nahse-event-list-content {
  flex: 1;
}

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

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

.nahse-event-list-title a:hover {
  color: var(--primary-color, #003295);
}

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

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

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

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

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

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

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

/* Stripe Checkout Button */
.nahse-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;
  transition: all 0.2s;
}

.nahse-stripe-checkout-btn:hover {
  background: #0a2540;
}

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

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

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

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

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

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