/**
 * PLL Championship Series Ticket Widget Styles
 * Version: 1.1.1
 */

* {
  box-sizing: border-box;
}

.pll-ticket-widget {
  padding: 20px;
}

.pll-buy-tickets-btn {
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pll-buy-tickets-btn:active {
  transform: translateY(0);
}

.pll-buy-tickets-btn:hover {
  background-color: #000000;
  color: #fff;
}

.pll-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.pll-modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.pll-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pll-modal-header {
  padding: 20px 24px;
  border-bottom: 2px solid #efefef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pll-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.pll-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #98989d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pll-modal-close:hover {
  background-color: #efefef;
  color: #242424;
}

.pll-modal-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.pll-day-section {
  margin-bottom: 32px;
}

.pll-day-section:last-child {
  margin-bottom: 0;
}

.pll-day-header {
  font-size: 20px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #000000;
}

.pll-ticket-group {
  background: #fafafa;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #efefef;
}

.pll-ticket-group:last-child {
  margin-bottom: 0;
}

.pll-ticket-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  gap: 12px;
}

.pll-session-desc {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  flex: 1;
  min-width: 0;
}

.pll-ticket-btn {
  background-color: #ffcb06;
  color: #242424;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pll-ticket-btn:hover {
  background-color: #e0b406;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(236, 191, 40, 0.4);
}

.pll-ticket-btn:active {
  transform: translateY(0);
}

.pll-ticket-icon {
  width: 18px;
  height: 18px;
}

.pll-game-row {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.pll-game-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pll-game-row:first-child {
  padding-top: 0;
}

.pll-game-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pll-game-time {
  font-size: 15px;
  font-weight: 600;
  color: #595959;
}

.pll-game-teams {
  font-size: 17px;
  color: #242424;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pll-league-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.pll-no-events {
  text-align: center;
  padding: 40px 20px;
  color: #98989d;
}

.pll-loading {
  text-align: center;
  padding: 40px 20px;
  color: #98989d;
}

.pll-loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%,
  100% {
    content: '...';
  }
}

.pll-error {
  text-align: center;
  padding: 40px 20px;
  color: #cc0000;
}

.pll-retry-btn {
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.2s ease;
}

.pll-retry-btn:hover {
  background-color: #000000;
}

@media (max-width: 640px) {
  .pll-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .pll-modal-title {
    font-size: 18px;
  }

  .pll-day-header {
    font-size: 18px;
  }

  .pll-session-desc {
    font-size: 15px;
  }

  .pll-ticket-btn {
    padding: 8px 16px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .pll-game-header {
    flex-wrap: wrap;
  }

  .pll-game-teams {
    font-size: 15px;
  }
}
