/* Events Page Styles */
.page-header {
  height: 50vh;
  background-color: var(--darker);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
  background-image: url('assets/images/bg-dark.jpg');
  background-size: cover;
  background-position: center;
  margin-top: 75px;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

.page-subtitle {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.7s;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Main Content Section */
.main-content {
  padding: 80px 0;
  background-color: var(--dark);
  position: relative;
  min-height: 100vh;
}

.main-content::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--dark);
  transform: skewY(-2deg);
  z-index: 1;
}

.content-container {
  position: relative;
  z-index: 2;
}

/* Events Navigation */
.events-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.events-nav-item {
  padding: 10px 25px;
  background-color: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.events-nav-item:first-child {
  border-radius: 4px 0 0 4px;
}

.events-nav-item:last-child {
  border-radius: 0 4px 4px 0;
}

.events-nav-item.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Events Filter */
.events-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background-color: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-label {
  margin-right: 15px;
  font-weight: 300;
  color: var(--light);
}

.filter-dropdown {
  padding: 8px 15px;
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  outline: none;
  margin-right: 15px;
  min-width: 150px;
  font-family: inherit;
  cursor: pointer;
}

.filter-dropdown option {
  background-color: var(--darker);
  color: var(--light);
}

.search-form {
  display: flex;
  margin-left: auto;
}

.search-input {
  padding: 8px 15px;
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  color: var(--light);
  outline: none;
  min-width: 200px;
  font-family: inherit;
}

.search-button {
  padding: 8px 15px;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background-color: #c0392b;
}

/* Events Calendar */
.calendar-view {
  display: none;
  margin-bottom: 50px;
}

.calendar-view.active {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav {
  display: flex;
  align-items: center;
}

.calendar-nav-button {
  width: 30px;
  height: 30px;
  background-color: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-nav-button:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.calendar-title {
  margin: 0 15px;
  font-size: 1.2rem;
  font-weight: 300;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-table th {
  padding: 10px;
  background-color: rgba(30, 30, 30, 0.8);
  color: var(--light);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.calendar-table td {
  height: 100px;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 5px;
  position: relative;
}

.calendar-day {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.calendar-event {
  background-color: rgba(231, 76, 60, 0.3);
  border-left: 3px solid var(--accent);
  padding: 5px;
  margin-top: 25px;
  margin-bottom: 5px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event:hover {
  background-color: rgba(231, 76, 60, 0.5);
}

.calendar-day.other-month {
  color: rgba(255, 255, 255, 0.3);
}

/* Events List */
.events-list {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.events-list.active {
  display: block;
}

.event-card {
  margin-bottom: 30px;
  background-color: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}

.event-card.animate {
  animation: fadeInUp 0.8s forwards;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.event-image {
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.event-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-date-badge {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 15px;
}

.event-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.event-details {
  margin-bottom: 20px;
  flex-grow: 1;
}

.event-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.event-info i {
  width: 20px;
  margin-right: 10px;
  color: var(--accent);
}

.event-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.event-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  font-size: 0.85rem;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.7);
}

/* Event Modal */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.event-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.event-modal.open .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
  z-index: 1;
}

.modal-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
  opacity: 1;
}

.modal-image {
  height: 300px;
  position: relative;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(15, 15, 15, 0.8));
}

.modal-body {
  padding: 30px;
}

.event-modal-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.event-modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-meta-item {
  display: flex;
  align-items: center;
}

.event-meta-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--accent);
}

.event-meta-info h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.event-meta-info p {
  font-size: 1.1rem;
}

.event-details-section {
  margin-bottom: 30px;
}

.event-details-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.event-details-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent);
}

.event-details-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.event-performer {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-performer:last-child {
  border-bottom: none;
}

.performer-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.performer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.performer-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.performer-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.ticket-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ticket-option {
  background-color: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  transition: var(--transition);
}

.ticket-option:hover {
  border-color: var(--accent);
}

.ticket-name {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--light);
}

.ticket-price {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.ticket-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-links {
  display: flex;
  align-items: center;
}

.share-link {
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  margin-right: 10px;
  transition: var(--transition);
}

.share-link:hover {
  background-color: var(--accent);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Single Event Page */
.event-single {
  background-color: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
}

.event-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  margin-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.event-prev, .event-next {
  max-width: 45%;
}

.event-nav-link {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.event-nav-link:hover {
  color: var(--accent);
}

.event-nav-link i {
  font-size: 1.5rem;
  margin: 0 15px;
}

.event-nav-content {
  display: flex;
  flex-direction: column;
}

.event-nav-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.event-nav-title {
  font-size: 1.1rem;
  font-weight: 300;
}

.event-back {
  text-align: center;
  margin-top: 30px;
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
  .event-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .events-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-label {
    margin-bottom: 10px;
  }

  .filter-dropdown {
    margin-bottom: 15px;
    width: 100%;
  }

  .search-form {
    width: 100%;
    margin-left: 0;
  }

  .search-input {
    flex-grow: 1;
  }
}

@media screen and (max-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }

  .events-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 15px;
  }

  .events-nav-item {
    flex-shrink: 0;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .calendar-table {
    display: block;
    overflow-x: auto;
  }

  .ticket-options {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
    gap: 20px;
  }

  .share-links {
    margin-bottom: 15px;
  }
  
  .event-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .event-prev, .event-next {
    max-width: 100%;
  }
}

/* Live House Single Event Enhancements */
.event-hero-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.event-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 30px;
}

.event-main-column,
.event-side-column {
  min-width: 0;
}

.event-side-column {
  display: grid;
  gap: 24px;
  align-content: start;
}

.event-side-panel {
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-side-title {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.event-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
}

.event-lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.event-lineup-list li {
  position: relative;
  padding: 14px 16px 14px 36px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-lineup-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translateY(-50%);
}

.event-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-copy-card {
  padding: 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-copy-card h4 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.share-label {
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.ticket-platform-links-vertical {
  flex-direction: column;
}

.venue-panel-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.venue-panel-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-events {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-event-card {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.related-event-card h4 {
  margin: 16px 0 10px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.related-event-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

@media screen and (max-width: 1024px) {
  .event-single-layout {
    grid-template-columns: 1fr;
  }

  .event-copy-grid,
  .related-events-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .event-hero-actions {
    flex-direction: column;
  }

  .event-hero-cta {
    justify-content: flex-start;
  }
}
