/* Event Detail Page Styles */
.main-content {
  padding-top: 80px;
  transition: padding 0.3s ease;
}

.event-detail-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.event-detail-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.event-detail-image {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.event-detail-info {
  flex: 1;
}

.event-detail-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--xl-dark);
  transition: color 0.3s ease;
}

.event-detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.event-detail-date,
.event-detail-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  transition: color 0.3s ease;
}

.event-detail-date i,
.event-detail-location i {
  color: var(--xl-blue);
  transition: color 0.3s ease;
}

.event-detail-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--xl-blue);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.event-detail-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.ticket-types {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ticket-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--xl-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ticket-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.ticket-type-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--xl-dark);
  transition: color 0.3s ease;
}

.ticket-type-info p {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  transition: color 0.3s ease;
}

.ticket-type-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-stock {
  font-size: 13px;
  color: #666;
  background: rgba(0, 102, 204, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.ticket-type-action {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticket-type-price {
  font-weight: 600;
  color: var(--xl-blue);
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.buy-ticket-btn {
  padding: 10px 20px;
  background: var(--xl-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.buy-ticket-btn:hover {
  background: var(--xl-blue-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

/* Back button styles */
.back-button {
  background: var(--xl-light);
  border: 1px solid var(--xl-gray);
  padding: 8px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 15px;
  font-family: 'Poppins', sans-serif;
}

.back-button:hover {
  background: var(--xl-gray);
}

.header-left {
  display: flex;
  align-items: center;
}

/* Disabled button styles */
.ticket-type button:disabled {
  background: #ccc !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.7;
}

/* Sale period styles */
.ticket-sale-period {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  transition: color 0.3s ease;
}

.ticket-sale-period i {
  color: var(--xl-blue);
  transition: color 0.3s ease;
}

/* Dark Theme Styles */
.dark-theme .event-detail-container,
.dark-theme .ticket-type {
  background: var(--night-card);
}

.dark-theme .event-detail-title,
.dark-theme .ticket-type-info h4,
.dark-theme .ticket-type-price {
  color: #f5f5f5;
}

.dark-theme .event-detail-description,
.dark-theme .ticket-type-info p {
  color: #ccc;
}

.dark-theme .event-detail-date,
.dark-theme .event-detail-location {
  color: #aaa;
}

.dark-theme .ticket-stock {
  color: #aaa;
  background: rgba(0, 102, 204, 0.2);
}

.dark-theme .ticket-sale-period {
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .event-detail-header {
    flex-direction: column;
  }
  
  .event-detail-image {
    width: 100%;
    height: auto;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 70px;
  }

  .event-detail-container {
    padding: 20px;
  }
  
  .event-detail-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .ticket-type {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .ticket-type-action {
    width: 100%;
    justify-content: space-between;
  }
}

/* Modal Zoom Image Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover {
    color: #ccc;
}

/* Tambahkan cursor pointer untuk gambar */
.event-image-slide {
    cursor: zoom-in;
}

/* Modal Slider Styles */
.modal-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.modal-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    font-size: 20px;
    transition: all 0.3s ease;
}

.modal-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Improve main slider styles */
.event-images-slider {
    display: flex;
    transition: transform 0.3s ease;
}

.event-image-slide {
    min-width: 100%;
    background-size: cover;
    background-position: center;
    cursor: zoom-in;
}

/* event-detail.css - Tambahkan style berikut */
.event-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover:not(:disabled) {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.favorite-btn.favorited {
    color: #ff6b6b;
}

.favorite-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.event-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.event-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}