/* 
 * Combined Event Detail Styles
 * This file combines and optimizes styles from:
 * - modern-events.css
 * - events-fixes.css
 * - single-event.css
 * - modern-single-event-new.css
 * - hero-booking-card.css
 */

:root {
  /* Base Colors */
  --primary-color: #2563eb;
  --primary-light: #dbeafe;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --secondary-color: #475569;

  /* Text Colors */
  --text-color: #334155;
  --light-text: #64748b;
  --lighter-text: #94a3b8;

  /* Background and Border Colors */
  --border-color: #e2e8f0;
  --background: #f8fafc;
  --card-bg: #ffffff;

  /* Shadows and Effects */
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --focus-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);

  /* Radius and Transitions */
  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* ======= BASE STYLES ======= */
body {
  background-color: var(--background);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ======= EVENT HERO SECTION ======= */
.event-hero-section {
  background: #fff;
  color: #333;
  padding: 80px 0 60px;
  margin-bottom: 0;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.event-hero-section.elegant-design {
  background: #fff;
  color: #333;
}

.event-hero-content {
  position: relative;
  z-index: 1;
}

/* Featured Badge */
.event-featured-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
  z-index: 10;
  letter-spacing: 0.5px;
}

.event-featured-badge i {
  color: #fff;
  margin-right: 5px;
}

/* Event Image */
.event-image-container {
  position: relative;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
}

.event-featured-image {
  width: 100%;
  max-width: 323px;
  height: 404px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.event-image-container:hover .event-featured-image {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.event-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  text-align: center;
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 65px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  height: auto;
  display: inline-block;
}

.date-month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #0d6efd;
  letter-spacing: 1px;
}

.date-day {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: #111827;
  margin-top: 3px;
}

/* Event Title and Meta */
.event-header-details {
  padding: 0 15px;
}

.event-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #111827;
  line-height: 1.2;
}

.event-meta-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #4b5563;
}

.event-meta-item i {
  width: 20px;
  margin-right: 10px;
  color: #0d6efd;
  font-size: 1rem;
}

.event-price-tag {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.08);
  padding: 8px 15px;
  border-radius: 10px;
  margin: 10px 0 15px;
}

.event-registration-status {
  margin-bottom: 15px;
}

.event-registration-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
}

.registration-closed {
  background-color: #fee2e2;
  color: #b91c1c;
}

.sold-out {
  background-color: #fef3c7;
  color: #b45309;
}

.already-registered {
  background-color: #d1fae5;
  color: #047857;
}

.open-for-registration {
  background-color: #dbeafe;
  color: #1e40af;
}

/* ======= BOOKING CARD ======= */
.booking-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: var(--transition);
}

.booking-card .card-header {
  background-color: #0d6efd;
  padding: 16px 20px;
  border-bottom: none;
}

.booking-card .card-header h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.booking-card .card-header h3 i {
  margin-right: 8px;
}

.booking-card .card-body {
  padding: 20px;
}

.hero-booking-card {
  height: 100%;
  max-height: 404px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-booking-card .card-header {
  padding: 16px 20px;
}

.hero-booking-card .card-body {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}

.ticket-info {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.ticket-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.info-label {
  font-weight: 600;
  color: #4b5563;
}

.info-value {
  font-weight: 700;
  color: #0d6efd;
}

.booking-deadline {
  background-color: #fff8e1;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 0.9rem;
  color: #b45309;
  display: flex;
  align-items: center;
}

.booking-deadline i {
  margin-right: 8px;
  color: #f59e0b;
}

.booking-action {
  margin-top: 15px;
}

/* ======= EVENT CONTENT SECTION ======= */
.event-content-container {
  padding: 50px 15px;
}

.content-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
}

.content-card .card-header {
  background-color: #f8fafc;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card .card-header h3 {
  color: #111827;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.content-card .card-header h3 i {
  margin-right: 10px;
  color: #0d6efd;
}

.content-card .card-body {
  padding: 20px;
}

.description-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
}

.description-content p {
  margin-bottom: 15px;
}

/* Event Details Lists */
.event-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-details-list li {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.event-details-list li:last-child {
  border-bottom: none;
}

.event-details-list li i {
  color: #0d6efd;
  font-size: 1.1rem;
  width: 24px;
  margin-right: 15px;
  margin-top: 3px;
}

.event-details-list li div {
  flex: 1;
}

.event-details-list li div strong {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 3px;
}

.event-details-list li div span {
  font-weight: 500;
  color: #334155;
}

/* Location Map */
.event-map-container {
  border-radius: 12px;
  overflow: hidden;
}

/* Organizer Info */
.organizer-info {
  display: flex;
  align-items: flex-start;
}

.organizer-details {
  flex: 1;
}

.organizer-details h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.organizer-details p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* ======= SIDEBAR ======= */
.sidebar-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
}

.sidebar-card .card-header {
  background-color: #f8fafc;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-card .card-header h3 {
  color: #111827;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.sidebar-card .card-header h3 i {
  margin-right: 10px;
  color: #0d6efd;
}

.sidebar-card .card-body {
  padding: 20px;
}

/* Social Share Buttons */
.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.social-share-btn {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-share-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.social-share-btn.facebook {
  background-color: #1877f2;
}

.social-share-btn.twitter {
  background-color: #1da1f2;
}

.social-share-btn.whatsapp {
  background-color: #25d366;
}

.social-share-btn.telegram {
  background-color: #0088cc;
}

.social-share-btn.linkedin {
  background-color: #0a66c2;
}

.social-share-btn.copy {
  background-color: #6b7280;
}

/* Related Events */
.related-events-list {
  display: flex;
  flex-direction: column;
}

.related-event-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.2s ease;
}

.related-event-item:last-child {
  border-bottom: none;
}

.related-event-item:hover {
  background-color: #f8fafc;
}

.related-event-image {
  flex-shrink: 0;
  margin-right: 15px;
}

.related-event-image img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.related-event-details {
  flex: 1;
}

.related-event-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.related-event-meta {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

.related-event-meta i {
  margin-right: 5px;
}

/* ======= TICKET BOOKING MODAL STYLES ======= */
.modern-modal {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.modern-modal .modal-header {
  background-color: var(--primary-color);
  color: white;
  padding: 18px 24px;
  border-bottom: none;
}

.modern-modal .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.modern-modal .modal-title i {
  font-size: 1.1rem;
  margin-right: 8px;
}

.modern-modal .modal-body {
  padding: 24px;
  background-color: #f8fafc;
}

.modern-modal .btn-close {
  color: white;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  opacity: 0.8;
}

.modern-modal .btn-close:hover {
  opacity: 1;
}

/* Authentication Alert */
.auth-alert {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff4e6, #fff1f1);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.auth-alert-icon {
  flex-shrink: 0;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 87, 34, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5722;
  margin-right: 20px;
}

.auth-alert-content h4 {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.auth-alert-content p {
  margin-bottom: 0;
  color: #666;
}

.auth-alert-content a {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
}

/* Booking Sections */
.booking-section {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.section-header {
  background-color: #f0f7ff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.section-header i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 10px;
}

.section-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.section-body {
  padding: 16px;
}

/* Custom Form Elements */
.form-floating label {
  color: #64748b;
}

.custom-input {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  height: calc(3rem + 2px);
  transition: all 0.2s ease;
  box-shadow: none;
}

.custom-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Ticket Category Styles */
.ticket-categories {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
  margin-bottom: 10px;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f5;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background-color: #f1f5f9;
  border-radius: 10px;
}

.ticket-category-item {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.ticket-category-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ticket-category-name {
  font-weight: 600;
  margin-right: 10px;
  color: #333;
  font-size: 1rem;
}

.ticket-category-price {
  color: var(--primary-color);
  font-weight: 600;
  background-color: #eef2ff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Modern Quantity Controls */
.modern-quantity-control {
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.modern-quantity-control-lg {
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border-radius: 8px;
  padding: 5px;
  width: 200px;
  margin: 15px 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background-color: transparent;
  color: #64748b;
  transition: all 0.2s ease;
}

.qty-btn:hover:not(:disabled) {
  background-color: #e2e8f0;
  color: #333;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-value {
  width: 30px;
  text-align: center;
  font-weight: 600;
  color: #333;
}

.qty-input {
  border: none;
  background: transparent;
  width: 60px;
  text-align: center;
  font-weight: 600;
  color: #333;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Standard Ticket Selector */
.standard-ticket-selector {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e2e8f0;
}

/* Override for ticket-info-item to avoid conflicts */
.standard-ticket-selector .ticket-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.standard-ticket-selector .info-label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.standard-ticket-selector .info-value {
  font-weight: 700;
  color: var(--primary-color);
  background-color: #eef2ff;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Summary Styles */
.summary-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.summary-header,
.summary-row,
.summary-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.summary-header {
  background-color: #f1f5f9;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.summary-col {
  padding: 10px 12px;
  text-align: left;
}

.summary-row {
  border-bottom: 1px solid #e2e8f0;
  background-color: white;
}

.summary-row:nth-child(even) {
  background-color: #f8fafc;
}

.summary-footer {
  background-color: #eef2ff;
  font-weight: 700;
  color: var(--primary-color);
}

.standard-summary {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid #e2e8f0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #64748b;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 5px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.btn-cancel {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: white;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background-color: #f1f5f9;
  color: #333;
}

.btn-book {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-book:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 1200px) {
  .event-title {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .event-hero-section {
    padding: 60px 0 40px;
  }

  .event-title {
    font-size: 1.8rem;
  }

  .col-lg-3.col-md-3 {
    margin-top: 20px;
  }

  .hero-booking-card {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .event-hero-section {
    padding: 40px 0 30px;
  }

  .event-title {
    font-size: 1.5rem;
  }
  .event-meta-item {
    font-size: 0.9rem;
  }

  .event-featured-image {
    height: 404px;
    max-width: 323px;
    margin: 0 auto;
    display: block;
  }

  .event-content-container {
    padding: 30px 15px;
  }

  .event-details-list li {
    padding: 10px 0;
  }
}

@media (max-width: 575px) {
  .event-hero-section {
    padding: 30px 0 20px;
  }
  .event-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .event-featured-image {
    height: 404px;
    max-width: 323px;
    margin: 0 auto;
  }

  .event-price-tag {
    font-size: 1.1rem;
  }

  .event-registration-status span {
    font-size: 0.85rem;
  }

  .content-card .card-header h3,
  .sidebar-card .card-header h3 {
    font-size: 1rem;
  }
}

/* Mobile specific styles for event image */
@media (max-width: 767px) {
  .event-image-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 323px;
  }

  .event-featured-image {
    width: 100%;
    height: 404px;
    object-fit: cover;
  }

  .col-lg-3.col-md-4 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
}

/* Fix for sidebar-content */
.sidebar-content {
  padding-bottom: 6rem !important;
  overflow-y: auto;
  max-height: calc(100vh - 9rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sidebar-content::-webkit-scrollbar {
  width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}
