/* Tablo Cards - Shared styles for event cards */

/* Events List - Full width cards on mobile */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tablo-style Event Card - Full width with overlay */
.tablo-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #fff;
  background: #1a1a1a;
}

.tablo-card-link {
  display: block;
  position: relative;
}

/* Card Image with gradient overlay */
.tablo-card-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.tablo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.tablo-card:hover .tablo-card-image img {
  transform: scale(1.05);
}

/* Gradient overlay */
.tablo-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}

/* Top badges row */
.tablo-card-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.tablo-card-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tablo-card-type-badge svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* Badge "Offro io" */
.tablo-card-offro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary, #ef5a66);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Content overlay at bottom */
.tablo-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
}

/* Date and time badges */
.tablo-card-datetime {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tablo-card-date-badge {
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
}

.tablo-card-time-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: Inter, sans-serif;
}

.tablo-card-status-badge {
  background: var(--sand);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
}

/* Title and location */
.tablo-card-title {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tablo-card-title span {
  font-weight: 400;
  font-size: 15px;
  opacity: 0.85;
}

/* Footer row */
.tablo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.tablo-card-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Spots indicator */
.tablo-card-spots {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.tablo-card-spots svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* Avatar stack */
.tablo-card-avatars {
  display: flex;
  align-items: center;
}

.tablo-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: #ddd;
  object-fit: cover;
}

.tablo-card-avatar:first-child {
  margin-left: 0;
}

.tablo-card-avatar-more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* Action button */
.tablo-card-action {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Share button */
.tablo-btn-share {
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.tablo-btn-share:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.tablo-btn-share svg {
  width: 18px;
  height: 18px;
}

.tablo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.tablo-btn-primary {
  background: var(--primary);
  color: #fff;
}

.tablo-btn-primary:hover {
  background: var(--primary-700);
  transform: scale(1.03);
}

.tablo-btn-invited {
  background: var(--sand);
  color: var(--primary);
}

.tablo-btn-done {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  cursor: default;
}

/* Distance badge */
.tablo-card-distance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.tablo-card-distance svg {
  width: 14px;
  height: 14px;
}

/* Desktop: 2 columns grid */
@media (min-width: 768px) {
  .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tablo-card-image {
    height: 320px;
  }

  .tablo-card-title {
    font-size: 20px;
  }
}

/* Navigation buttons */
.events-nav {
  display: flex;
  gap: 8px;
}

.events-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e6e6e6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.events-nav-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--sand);
}

.events-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.events-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
}

/* No results state */
.events-no-results {
  text-align: center;
  padding: 50px 30px;
  background: #f9fafb;
  border-radius: 16px;
}

.events-no-results-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.events-no-results h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.events-no-results p {
  color: var(--muted);
  margin: 0;
}
