/**
 * CustomCur8Widget - Default Styling
 * 
 * These styles provide a professional default layout for the custom widget.
 * Feel free to modify these classes to match your design needs.
 */

/* ============================================
   WRAPPER & LAYOUT
   ============================================ */

.cur8-custom-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsive: Two columns on tablets */
@media (max-width: 900px) {
  .cur8-custom-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 16px;
  }
}

/* Responsive: Single column on mobile */
@media (max-width: 600px) {
  .cur8-custom-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
  }
}


/* ============================================
   EVENT CARD
   ============================================ */

.cur8-custom-event {
  background: #fafafa;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cur8-custom-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


/* ============================================
   EVENT IMAGE
   ============================================ */

.cur8-custom-event-image {
  padding: 12px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 2 / 3;
}

.cur8-custom-event-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.cur8-custom-event-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  visibility: hidden;
  padding: 4px 12px;
  /* border-radius: 20px; */
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ============================================
   EVENT CONTENT
   ============================================ */

.cur8-custom-event-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}


/* ============================================
   TITLE
   ============================================ */

.cur8-custom-event-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  flex-wrap: wrap;
}


/* ============================================
   DESCRIPTION
   ============================================ */

.cur8-custom-event-description {
  font-size: 13px;
  margin-bottom: 12px;
  position: relative;
}

.cur8-custom-description-content {
  color: white;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Force consistent text color for nested elements */
.cur8-custom-description-content,
.cur8-custom-description-content * {
  color: inherit;
  background: none !important;
  border: none;
  font-family: inherit;
  letter-spacing: inherit;
}

.cur8-custom-description-content h1,
.cur8-custom-description-content h2,
.cur8-custom-description-content h3,
.cur8-custom-description-content h4,
.cur8-custom-description-content h5,
.cur8-custom-description-content h6 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0;
}

.cur8-custom-description-content p {
  margin: 0 0 8px 0px
}

.cur8-custom-description-content p:last-child {
  margin-bottom: 0;
}

.cur8-custom-description-content strong {
  font-weight: 600;
  color: white;
}

.cur8-custom-description-content em {
  font-style: italic;
}

.cur custom-description-content a {
  color: #007bff;
  text-decoration: underline;
}

.cur8-custom-description-content a:hover {
  color: #0056b3;
}

.cur8-custom-description-content ul,
.cur8-custom-description-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.cur8-custom-description-content li {
  margin: 4px 0;
}

.cur8-custom-description-content br {
  display: block;
  content: "";
  margin: 4px 0;
}

/* Show more button styling */
.cur8-custom-show-more {
  display: inline-block;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.cur8-custom-show-more:hover {
  color: #0056b3;
}

/* Expanded state - show full description */
.cur8-custom-event-description.expanded .cur8-custom-description-content {
  -webkit-line-clamp: unset;
  max-height: unset;
  overflow: visible;
}




/* ============================================
   DATES
   ============================================ */

.cur8-custom-event-dates {
  margin-bottom: 12px;
  flex-grow: 2;
}

.cur8-custom-date-item {
  font-size: 12px;
  color: #555;
  padding: 8px 0;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cur8-custom-date-item:first-child {
  border-top: none;
  padding-top: 0;
}

.cur8-custom-date-time {
  flex: 1;
  font-size: 12px;
}

.cur8-custom-date-buy {
  display: inline-block;
  padding: 4px 12px;
  background: #007bff;
  color: white;
  font-size: 11px;
  font-weight: 600;
  /* border-radius: 3px; */
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.cur8-custom-date-buy:hover {
  background: #0056b3;
  text-decoration: none;
  color: white;
}

.cur8-custom-no-dates {
  font-size: 12px;
  color: #999;
  font-style: italic;
}


/* ============================================
   VENUE
   ============================================ */

.cur8-custom-event-venue {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  padding: 8px;
  background: #f0f0f0;
  /* border-radius: 4px; */
}

.cur8-custom-event-venue strong {
  display: block;
  color: #222;
  margin-bottom: 4px;
}

.cur8-custom-venue-address {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}


/* ============================================
   PRICING
   ============================================ */

.cur8-custom-event-pricing {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.cur8-custom-pricing-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}

.cur8-custom-pricing-option:last-child {
  margin-bottom: 0;
}

.cur8-custom-price-label {
  color: #666;
  font-weight: 500;
}

.cur8-custom-price-amount {
  color: #222;
  font-weight: 700;
}


/* ============================================
   ACTIONS
   ============================================ */

.cur8-custom-event-actions {
  margin-top: auto;
}


/* ============================================
   BUTTONS
   ============================================ */

.cur8-custom-button {
  display: inline-block;
  padding: 12px 0px;
  /* border-radius: 4px; */
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.cur8-custom-button-primary {
  background: #007bff;
  color: white;
  width: 100%;
}

.cur8-custom-button-primary:hover {
  background: #0056b3;
  text-decoration: none;
  color: white;
}

.cur8-custom-button-primary:active {
  background: #004085;
}


/* ============================================
   EMPTY STATE
   ============================================ */

.cur8-custom-no-events {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 16px;
}


/* ============================================
   ERROR STATE
   ============================================ */

.cur8-custom-error {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  background: #fff3cd;
  border: 1px solid #ffc107;
  /* border-radius: 4px; */
  color: #856404;
}

.cur8-custom-error p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.cur8-custom-error small {
  display: block;
  font-size: 12px;
  color: #856404;
}


/* ============================================
   DARK MODE (Optional)
   ============================================ */

/* ============================================
   ALTERNATIVE LAYOUTS
   ============================================ */

/* Horizontal/List Layout - Uncomment to use */
/*
.cur8-custom-wrapper {
  grid-template-columns: 1fr;
  gap: 16px;
}

.cur8-custom-event {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.cur8-custom-event-image {
  aspect-ratio: auto;
  height: 300px;
}

@media (max-width: 900px) {
  .cur8-custom-event {
    grid-template-columns: 200px 1fr;
  }

  .cur8-custom-event-image {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .cur8-custom-event {
    grid-template-columns: 1fr;
  }

  .cur8-custom-event-image {
    aspect-ratio: 2 / 3;
    height: auto;
  }
}
*/


/* Masonry Layout - Uncomment to use */
/*
.cur8-custom-wrapper {
  column-count: 3;
  column-gap: 20px;
}

.cur8-custom-event {
  break-inside: avoid;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .cur8-custom-wrapper {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .cur8-custom-wrapper {
    column-count: 1;
  }
}
*/