/* --- DST Events Plugin Styles --- */

/* Container */
.dst-events {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

/* Tabs - Underline style */
.dst-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 2px solid #eee;
  margin-bottom: 25px;
}

.dst-tab {
  background: none;
  border: none;
  color: #444;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  position: relative;
  transition: transform 0.2s ease;
}

.dst-tab:hover {
  transform: translateY(-2px); /* bounce effect only */
  background: none;
  color: #C69C55;
}

.dst-tab.active {
  color: #910011;
   background: none;
}

.dst-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #C69C55; /* Gold underline */
  border-radius: 2px;
}

/* Events Grid */
.dst-events-grid {
  display: grid;
  gap: 25px;
}

.dst-events.cols-2 .dst-events-grid {
  grid-template-columns: repeat(2, 1fr);
}

.dst-events.cols-3 .dst-events-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dst-events.cols-4 .dst-events-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .dst-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dst-events-grid {
    grid-template-columns: 1fr;
  }
}

/* Event Card */
.dst-event-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dst-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.dst-event-image img {
  width: 100%;
  height: 140px; /* reduced for sleeker look */
  object-fit: cover;
}

.dst-event-content {
  padding: 15px;
}

.dst-event-content h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700; /* bolder */
  color: #222;
}

.dst-event-date {
  font-size: 1rem;
  font-weight: 600; /* bolder */
  color: #444;
  margin-bottom: 10px;
}

/* Category Badge */
.dst-event-category span {
  display: inline-block;
  border: 1px solid #C69C55; /* gold outline */
  color: #910011;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
  margin-bottom: 6px;
}

/* Event Link Button */
.dst-event-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px; /* slimmer */
  background: #910011;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 20px; /* pill style */
  transition: background 0.3s ease, transform 0.2s ease;
}

.dst-event-link:hover {
  background: #C69C55;
  color: #000;
  transform: translateY(-2px);
}

/* No Events Message */
.dst-no-events {
  grid-column: 1 / -1; /* span full width of grid */
  text-align: center;
  padding: 50px 20px;
  background: #fdf7f7;
  border: 2px dashed #C69C55;
  border-radius: 12px;
  color: #910011;
  font-family: "Georgia", serif;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.dst-no-events p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.dst-no-events span {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #444;
}

/* Fade animation for event cards */
.dst-event-card {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.dst-event-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

/* Smooth fade-in for no-events message */
.dst-no-events {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Calendar View Overrides --- */

/* Container */
.tribe-events {
  font-family: "Georgia", serif;
  color: #333;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

/* Month Navigation */
.tribe-events-header,
.tribe-events-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.tribe-events-nav a {
  background: #910011;
  color: #fff;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.tribe-events-nav a:hover {
  background: #C69C55;
  color: #000;
}

/* Calendar Table */
.tribe-events-calendar {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.tribe-events-calendar th {
  background: #910011;
  color: #fff;
  font-weight: 700;
  padding: 12px;
  text-align: center;
}

.tribe-events-calendar td {
  vertical-align: top;
  padding: 10px;
  border: 1px solid #eee;
  height: 120px;
  position: relative;
}

/* Event Links inside cells */
.tribe-events-calendar td .tribe-events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tribe-events-calendar td .tribe-events a {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fdf7f7;
  border-left: 3px solid #C69C55;
  border-radius: 6px;
  color: #910011;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.tribe-events-calendar td .tribe-events a:hover {
  background: #C69C55;
  color: #000;
  transform: translateX(2px);
}

/* Today’s Cell Highlight */
.tribe-events-calendar td.tribe-events-present {
  background: #fff8f5;
  border: 2px solid #C69C55;
}

/* Mobile calendar adjustments */
@media (max-width: 768px) {
  .tribe-events-calendar th,
  .tribe-events-calendar td {
    font-size: 0.8rem;
    padding: 8px;
  }

  .tribe-events-calendar td {
    height: auto;
  }
}

/* Calendar View */
.dst-view-calendar {
  margin-top: 40px;
}

.dst-calendar-header {
  text-align: center;
  margin-bottom: 20px;
}

.dst-calendar-header h2 {
  font-family: "Georgia", serif;
  font-size: 1.6rem;
  color: #910011;
}

.dst-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 20px;
  width: 100%;      /* ✅ force full width */
  box-sizing: border-box;
}


.dst-calendar-cell {
  background: #fff;
  min-height: 100px;
  padding: 6px;
  font-size: 0.9rem;
  position: relative;
}

.dst-calendar-cell.empty {
  background: #f9f9f9;
}

.dst-calendar-head {
  background: #910011;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 8px;
}

.dst-calendar-day {
  font-weight: bold;
  margin-bottom: 6px;
  color: #910011;
}

.dst-calendar-event {
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.dst-calendar-event a {
  text-decoration: none;
  color: #444;
}

.dst-calendar-event a:hover {
  color: #C69C55;
}

/* Calendar navigation */
.dst-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dst-calendar-header h2 {
  margin: 0;
  font-family: "Georgia", serif;
  font-size: 1.6rem;
  color: #910011;
}

.dst-cal-nav {
  font-size: 0.9rem;
  color: #910011;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.dst-cal-nav:hover {
  background: #C69C55;
  color: #fff;
}

.dst-cal-nav {
  border: none;
  background: none;
  font-weight: 600;
  color: #910011;
  cursor: pointer;
  transition: color 0.2s;
}

.dst-cal-nav:hover {
  color: #C69C55;
}

/* === Calendar Grid Fix === */
.dst-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 20px;
}

.dst-calendar-cell {
  background: #fff;
  border: 1px solid #eee;
  min-height: 110px;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.dst-calendar-cell.empty {
  background: transparent;
  border: none;
}

.dst-calendar-head {
  font-weight: 700;
  text-align: center;
  background: #f8f8f8;
  border: none;
  color: #910011;
}

/* Day Number */
.dst-calendar-day {
  font-size: 0.9rem;
  font-weight: 600;
  color: #910011;
  margin-bottom: 4px;
}

/* Event Links */
.dst-calendar-event a {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  padding: 2px 4px;
  transition: background 0.2s, color 0.2s;
}

.dst-calendar-event a:hover {
  background: rgba(198,156,85,0.15); /* gold tint, translucent */
  color: #910011;
}

/* Header Nav */
.dst-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.dst-calendar-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #910011;
}

.dst-cal-nav {
  border: none;
  background: none;
  font-weight: 600;
  color: #910011;
  cursor: pointer;
  transition: color 0.2s;
}

.dst-cal-nav:hover {
  color: #C69C55;
  background: transparent; /* prevent block hover color */
}

/* === Responsive Calendar Grid === */
.dst-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 20px;
}

/* Tablet (≤900px) → 4 columns */
@media (max-width: 900px) {
  .dst-calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile (≤600px) → 2 columns */
@media (max-width: 600px) {
  .dst-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dst-calendar-head {
    display: none; /* hide weekday headers on small screens */
  }

  .dst-calendar-cell {
    min-height: 80px;
    padding: 8px;
  }

  .dst-calendar-day {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #910011;
  }
}
