/**
 * The Events Calendar - Standalone Shortcode & Details Modal Styles
 */

:root {
  --tec-primary: #3182ce;
  --tec-primary-hover: #2b6cb0;
  --tec-primary-light: #ebf8ff;
  --tec-text-main: #2d3748;
  --tec-text-muted: #718096;
  --tec-text-light: #a0aec0;
  --tec-bg-card: #ffffff;
  --tec-bg-subtle: #f7fafc;
  --tec-border: #e2e8f0;
  --tec-border-light: #edf2f7;
  --tec-radius-sm: 6px;
  --tec-radius-md: 10px;
  --tec-radius-lg: 16px;
  --tec-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --tec-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --tec-shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
  --tec-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Base Shortcode Container
   ========================================================================== */
.tec-shortcode-wrapper {
  font-family: var(--tec-font);
  color: var(--tec-text-main);
  background: var(--tec-bg-card);
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-lg);
  box-shadow: var(--tec-shadow-md);
  margin: 1.5rem 0;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.tec-shortcode-wrapper * {
  box-sizing: border-box;
}

/* Dark Theme */
.tec-shortcode-wrapper.tec-theme-dark,
.tec-single-event-wrapper.tec-theme-dark {
  --tec-primary: #63b3ed;
  --tec-primary-hover: #4299e1;
  --tec-primary-light: #2a4365;
  --tec-text-main: #f7fafc;
  --tec-text-muted: #cbd5e0;
  --tec-text-light: #718096;
  --tec-bg-card: #1a202c;
  --tec-bg-subtle: #2d3748;
  --tec-border: #4a5568;
  --tec-border-light: #2d3748;
}

/* ==========================================================================
   Header & Controls
   ========================================================================== */
.tec-shortcode-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--tec-bg-subtle);
  border-bottom: 1px solid var(--tec-border);
}

.tec-shortcode-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tec-shortcode-current-month {
  margin: 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tec-text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tec-shortcode-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--tec-radius-sm);
  border: 1px solid var(--tec-border);
  background: var(--tec-bg-card);
  color: var(--tec-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.tec-shortcode-nav-btn:hover {
  background: var(--tec-primary-light);
  color: var(--tec-primary);
  border-color: var(--tec-primary);
  transform: translateY(-1px);
}

.tec-shortcode-btn.tec-btn-today {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--tec-radius-sm);
  border: 1px solid var(--tec-border);
  background: var(--tec-bg-card);
  color: var(--tec-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tec-shortcode-btn.tec-btn-today:hover {
  background: var(--tec-primary-light);
  color: var(--tec-primary);
  border-color: var(--tec-primary);
}

.tec-shortcode-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Category Filter Dropdown */
.tec-category-filter {
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.45rem 1.8rem 0.45rem 0.75rem;
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-sm);
  background: var(--tec-bg-card) url('data:image/svg+xml;utf8,<svg fill="%23718096" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 0.4rem center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--tec-text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.tec-category-filter:focus {
  border-color: var(--tec-primary);
}

/* View Switcher */
.tec-shortcode-view-switcher {
  display: flex;
  background: var(--tec-border-light);
  padding: 3px;
  border-radius: var(--tec-radius-sm);
  border: 1px solid var(--tec-border);
}

.tec-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--tec-text-muted);
  cursor: pointer;
  border-radius: calc(var(--tec-radius-sm) - 2px);
  transition: all 0.2s ease;
}

.tec-view-btn.active {
  background: var(--tec-bg-card);
  color: var(--tec-primary);
  box-shadow: var(--tec-shadow-sm);
}

/* ==========================================================================
   Month Grid View
   ========================================================================== */
.tec-shortcode-body {
  position: relative;
  min-height: 350px;
}

.tec-shortcode-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.tec-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(49, 130, 206, 0.2);
  border-top-color: var(--tec-primary);
  border-radius: 50%;
  animation: tecSpin 0.75s linear infinite;
}

@keyframes tecSpin {
  to {
    transform: rotate(360deg);
  }
}

.tec-month-grid-table {
  width: 100%;
}

.tec-grid-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--tec-bg-subtle);
  border-bottom: 1px solid var(--tec-border);
  text-align: center;
}

.tec-grid-header-cell {
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tec-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tec-day-short {
  display: none;
}

.tec-grid-days-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--tec-border);
  gap: 1px;
}

.tec-grid-day-cell {
  background: var(--tec-bg-card);
  min-height: 125px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  transition: background 0.15s ease;
  position: relative;
}

.tec-grid-day-cell:hover {
  background: var(--tec-bg-subtle);
}

.tec-grid-day-cell.tec-other-month {
  background: #fdfdfd;
  opacity: 0.6;
}

.tec-grid-day-cell.tec-is-today {
  background: #f0f7ff;
}

.tec-grid-day-cell.tec-is-today .tec-day-number {
  color: #ffffff;
  background: var(--tec-primary);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tec-day-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.tec-day-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tec-text-main);
}

.tec-today-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tec-primary);
  background: var(--tec-primary-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.tec-mobile-event-count {
  display: none;
}

/* Event Item Pills */
.tec-day-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.tec-shortcode-event-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--tec-bg-subtle);
  border-left: 3px solid var(--event-cat-color, var(--tec-primary));
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--tec-text-main);
  font-size: 0.775rem;
  line-height: 1.25;
  transition: all 0.15s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tec-shortcode-event-item:hover {
  background: var(--tec-primary-light);
  color: var(--tec-primary-hover);
  transform: translateX(2px);
  text-decoration: none;
}

.tec-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--event-cat-color, var(--tec-primary));
  flex-shrink: 0;
}

.tec-event-item-time {
  font-weight: 600;
  color: var(--tec-text-muted);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.tec-event-item-title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tec-event-hidden {
  display: none !important;
}

.tec-more-events-btn {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tec-primary);
  background: transparent;
  border: none;
  padding: 2px 4px;
  text-align: left;
  cursor: pointer;
  margin-top: 2px;
}

.tec-more-events-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   List View
   ========================================================================== */
.tec-events-list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.tec-list-event-card {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  background: var(--tec-bg-card);
  border: 1px solid var(--tec-border);
  border-left: 4px solid var(--event-cat-color, var(--tec-primary));
  border-radius: var(--tec-radius-md);
  padding: 1.2rem;
  transition: all 0.2s ease;
  box-shadow: var(--tec-shadow-sm);
}

.tec-list-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tec-shadow-md);
  border-color: var(--tec-primary);
}

.tec-list-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--tec-bg-subtle);
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-sm);
  padding: 0.6rem 1rem;
  min-width: 75px;
  text-align: center;
}

.tec-badge-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tec-primary);
}

.tec-badge-day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.2rem 0;
  color: var(--tec-text-main);
}

.tec-badge-weekday {
  font-size: 0.7rem;
  color: var(--tec-text-muted);
  text-transform: uppercase;
}

.tec-list-event-thumb {
  width: 140px;
  height: 100px;
  border-radius: var(--tec-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.tec-list-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tec-list-event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tec-event-category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--event-cat-color, var(--tec-primary));
  margin-bottom: 0.35rem;
}

.tec-list-event-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.tec-list-event-title a {
  color: var(--tec-text-main);
  text-decoration: none;
  transition: color 0.15s;
}

.tec-list-event-title a:hover {
  color: var(--tec-primary);
}

.tec-list-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--tec-text-muted);
}

.tec-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tec-list-event-excerpt {
  font-size: 0.9rem;
  color: var(--tec-text-muted);
  line-height: 1.5;
  margin: 0 0 0.8rem 0;
}

.tec-list-event-actions {
  margin-top: auto;
}

.tec-btn-details {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tec-primary);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.tec-btn-details:hover {
  color: var(--tec-primary-hover);
  text-decoration: underline;
}

.tec-no-events-notice {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--tec-text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Event Details Modal Dialog
   ========================================================================== */
.tec-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: tecModalFadeIn 0.25s ease-out;
}

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

.tec-modal-dialog {
  background: #ffffff;
  color: #2d3748;
  font-family: var(--tec-font);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--tec-radius-lg);
  box-shadow: var(--tec-shadow-lg);
  position: relative;
  animation: tecModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tecModalSlideUp {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.tec-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.tec-modal-close-btn:hover {
  background: #f7fafc;
  color: #e53e3e;
  transform: rotate(90deg);
}

.tec-modal-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Modal Inner Structure */
.tec-modal-featured-image {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  background: #1a202c;
}

.tec-modal-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tec-modal-header-section {
  padding: 1.75rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--tec-border-light);
}

.tec-modal-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.tec-modal-cat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--tec-primary-light);
  color: var(--tec-primary);
  padding: 3px 8px;
  border-radius: 4px;
}

.tec-modal-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a202c;
}

.tec-modal-datetime-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #edf2f7;
  color: #2b6cb0;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.tec-modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem;
}

.tec-modal-description-col {
  display: flex;
  flex-direction: column;
}

.tec-modal-description-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4a5568;
  margin-bottom: 2rem;
}

.tec-modal-description-text p {
  margin-bottom: 1rem;
}

.tec-modal-export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tec-border-light);
  margin-top: auto;
}

.tec-export-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tec-text-muted);
}

.tec-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--tec-border);
  background: var(--tec-bg-card);
  color: var(--tec-text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tec-export-btn:hover {
  background: var(--tec-bg-subtle);
  border-color: var(--tec-primary);
  color: var(--tec-primary);
}

/* Modal Right Sidebar */
.tec-modal-meta-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tec-modal-meta-card {
  display: flex;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--tec-radius-md);
  padding: 1rem;
}

.tec-card-icon {
  color: var(--tec-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.tec-card-info h4 {
  margin: 0 0 0.35rem 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0aec0;
}

.tec-card-info p {
  margin: 0 0 0.25rem 0;
  font-size: 0.88rem;
  color: #4a5568;
}

.tec-card-info a {
  color: var(--tec-primary);
  text-decoration: none;
}

.tec-card-info a:hover {
  text-decoration: underline;
}

.tec-card-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.tec-primary-ticket-btn {
  display: inline-block;
  background: var(--tec-primary);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: background 0.2s;
  text-align: center;
}

.tec-primary-ticket-btn:hover {
  background: var(--tec-primary-hover);
  text-decoration: none !important;
}

.tec-btn-full-page {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #2d3748;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--tec-radius-md);
  text-decoration: none;
  transition: background 0.2s ease;
}

.tec-btn-full-page:hover {
  background: #1a202c;
  color: #ffffff;
}

/* ==========================================================================
   Single Event Shortcode Layouts [single_event]
   ========================================================================== */
.tec-single-event-wrapper {
  font-family: var(--tec-font);
  color: var(--tec-text-main);
  background: var(--tec-bg-card);
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-lg);
  box-shadow: var(--tec-shadow-md);
  margin: 1.5rem 0;
  overflow: hidden;
  box-sizing: border-box;
}

.tec-single-event-wrapper * {
  box-sizing: border-box;
}

.tec-single-event-empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--tec-text-muted);
  border: 1px dashed var(--tec-border);
  border-radius: var(--tec-radius-md);
  font-family: var(--tec-font);
}

/* Layout 1: Full Single Event */
.tec-single-full {
  display: flex;
  flex-direction: column;
}

.tec-single-hero-image {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #1a202c;
}

.tec-single-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.tec-single-header-panel {
  padding: 2rem 2.25rem 1.5rem 2.25rem;
  border-bottom: 1px solid var(--tec-border-light);
  background: var(--tec-bg-card);
}

.tec-single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tec-cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--tec-primary-light);
  color: var(--event-cat-color, var(--tec-primary));
  padding: 4px 10px;
  border-radius: 4px;
}

.tec-single-title {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--tec-text-main);
  letter-spacing: -0.02em;
}

.tec-single-datetime-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--tec-bg-subtle);
  border: 1px solid var(--tec-border);
  color: var(--tec-primary);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
}

.tec-single-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 2.25rem;
}

.tec-single-main-col {
  display: flex;
  flex-direction: column;
}

.tec-single-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--tec-text-main);
  margin-bottom: 2rem;
}

.tec-single-description p {
  margin-bottom: 1.25rem;
}

.tec-single-export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tec-border-light);
  margin-top: auto;
}

.tec-export-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tec-text-muted);
}

.tec-single-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tec-single-card {
  background: var(--tec-bg-subtle);
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-md);
  padding: 1.25rem;
  box-shadow: var(--tec-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tec-single-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tec-shadow-md);
}

.tec-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tec-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tec-border);
}

.tec-card-head h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tec-text-muted);
}

.tec-meta-primary {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  color: var(--tec-text-main);
}

.tec-meta-sub {
  margin: 0 0 0.35rem 0;
  font-size: 0.9rem;
  color: var(--tec-text-muted);
}

.tec-meta-sub a {
  color: var(--tec-primary);
  text-decoration: none;
}

.tec-meta-sub a:hover {
  text-decoration: underline;
}

.tec-link-action {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tec-primary);
  text-decoration: none;
  margin-top: 0.4rem;
}

.tec-link-action:hover {
  text-decoration: underline;
}

.tec-cost-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tec-cost-label {
  font-size: 0.9rem;
  color: var(--tec-text-muted);
}

.tec-cost-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tec-text-main);
}

.tec-btn-tickets {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--tec-primary);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: var(--tec-radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.tec-btn-tickets:hover {
  background: var(--tec-primary-hover);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.tec-btn-secondary-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--tec-bg-subtle);
  border: 1px solid var(--tec-border);
  color: var(--tec-text-main);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--tec-radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.tec-btn-secondary-link:hover {
  background: var(--tec-border);
  color: var(--tec-text-main);
}

/* Layout 2: Card Layout */
.tec-single-card-layout {
  display: flex;
  flex-direction: column;
  background: var(--tec-bg-card);
}

.tec-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #1a202c;
}

.tec-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tec-single-card-layout:hover .tec-card-media img {
  transform: scale(1.03);
}

.tec-media-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.tec-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.tec-card-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tec-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.tec-card-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.tec-card-title a {
  color: var(--tec-text-main);
  text-decoration: none;
  transition: color 0.15s;
}

.tec-card-title a:hover {
  color: var(--tec-primary);
}

.tec-card-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tec-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.tec-card-excerpt {
  font-size: 0.92rem;
  color: var(--tec-text-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.tec-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--tec-border-light);
  margin-top: auto;
}

.tec-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tec-text-main);
}

.tec-card-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tec-btn-card-ticket {
  background: var(--tec-primary);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--tec-radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.tec-btn-card-ticket:hover {
  background: var(--tec-primary-hover);
}

.tec-btn-card-details {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tec-text-main);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-sm);
  transition: all 0.2s;
}

.tec-btn-card-details:hover {
  background: var(--tec-bg-subtle);
  border-color: var(--tec-primary);
  color: var(--tec-primary);
}

/* Layout 3: Hero Banner Layout */
.tec-single-hero-layout {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 3.5rem 2.5rem;
  border-radius: var(--tec-radius-lg);
  overflow: hidden;
}

.tec-single-hero-layout.no-bg-image {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.tec-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.tec-hero-cat-pill {
  display: inline-block;
  background: var(--tec-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.tec-hero-title {
  margin: 0 0 1rem 0;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.tec-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.tec-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.tec-hero-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e0;
  margin: 0 0 1.75rem 0;
}

.tec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tec-hero-btn-primary {
  display: inline-block;
  background: var(--tec-primary);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--tec-radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.tec-hero-btn-primary:hover {
  background: var(--tec-primary-hover);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.tec-hero-btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--tec-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: all 0.2s;
}

.tec-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none !important;
}

/* Layout 4: Compact Strip Layout */
.tec-single-compact-layout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--tec-bg-card);
}

.tec-compact-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--tec-bg-subtle);
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-sm);
  padding: 0.4rem 0.8rem;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.tec-cbadge-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tec-primary);
}

.tec-cbadge-day {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tec-text-main);
}

.tec-compact-content {
  flex: 1;
}

.tec-compact-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.tec-compact-title a {
  color: var(--tec-text-main);
  text-decoration: none;
  transition: color 0.15s;
}

.tec-compact-title a:hover {
  color: var(--tec-primary);
}

.tec-compact-meta {
  font-size: 0.82rem;
  color: var(--tec-text-muted);
}

.tec-compact-separator {
  margin: 0 0.4rem;
  color: var(--tec-text-light);
}

.tec-compact-action {
  flex-shrink: 0;
}

.tec-compact-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tec-primary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--tec-border);
  border-radius: var(--tec-radius-sm);
  transition: all 0.2s;
}

.tec-compact-btn:hover {
  background: var(--tec-primary-light);
  border-color: var(--tec-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .tec-modal-body-grid,
  .tec-single-body-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .tec-shortcode-header {
    flex-direction: column;
    align-items: stretch;
  }

  .tec-shortcode-title-wrap {
    justify-content: space-between;
  }

  .tec-shortcode-actions {
    justify-content: space-between;
  }

  .tec-day-full {
    display: none;
  }

  .tec-day-short {
    display: inline;
  }

  .tec-grid-day-cell {
    min-height: 80px;
    padding: 0.35rem;
  }

  .tec-event-item-time {
    display: none;
  }

  .tec-list-event-card {
    flex-direction: column;
  }

  .tec-list-event-thumb {
    width: 100%;
    height: 180px;
  }

  .tec-single-hero-layout {
    padding: 2.5rem 1.5rem;
  }

  .tec-hero-title {
    font-size: 1.75rem;
  }

  .tec-single-title {
    font-size: 1.6rem;
  }

  .tec-single-compact-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .tec-compact-action {
    width: 100%;
  }

  .tec-compact-btn {
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tec-grid-day-cell {
    min-height: 60px;
  }

  .tec-shortcode-event-item {
    padding: 2px 4px;
    font-size: 0.7rem;
  }
}
