/* ====================================================
   1. BASE STYLES & RESET
==================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1050px;
  margin: 0 auto;
}

/* ====================================================
   2. HEADER & NAVIGATION STYLES
==================================================== */
header {
  background: #ffffff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

nav a.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  padding: 15px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

nav a.nav-link:hover, nav a.nav-link.active {
  color: #ff5722;
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1100;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #fff5f2;
  color: #ff5722;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover .arrow-icon {
  transform: rotate(180deg);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.btn-icon-fav {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.btn-icon-fav:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fca5a5;
}

.btn-organizer {
  background: linear-gradient(135deg, #ff5722 0%, #ff7a45 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.15);
}

.btn-organizer:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.25);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2000;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #1e293b;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* ====================================================
   3. MOBILE MENU
==================================================== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1499;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  z-index: 1500;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-side-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.mobile-links-container {
  display: flex;
  flex-direction: column;
}

.mobile-nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #ff5722;
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #f8fafc;
  border-radius: 8px;
}

.mobile-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.mobile-dropdown a:hover {
  color: #ff5722;
}

.mobile-nav-item.active-dropdown .mobile-dropdown {
  max-height: 200px;
}

.mobile-nav-item.active-dropdown .arrow-icon {
  transform: rotate(180deg);
  color: #ff5722;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ====================================================
   4. DETAILPAGE LAYOUT
==================================================== */
.detail-section {
  padding: 40px 0 80px 0;
}

.event-detail-header {
  margin-bottom: 25px;
}

.back-to-agenda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}

.back-to-agenda:hover {
  color: #ff5722;
}

.event-detail-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 6px;
}

.event-location-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #ff5722;
  font-weight: 600;
}

.main-detail-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: start;
}

/* Flyer Sidebar */
.flyer-sidebar-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flyer-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.flyer-clickable {
  cursor: pointer;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}

.flyer-clickable img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.flyer-clickable:hover img {
  transform: scale(1.02);
}

.flyer-overlay-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
}

.flyer-clickable:hover .flyer-overlay-icon {
  opacity: 1;
}

/* Content Card (Rechts) */
.unified-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.content-section-block {
  margin-bottom: 35px;
}

.content-section-block:last-of-type {
  margin-bottom: 0;
}

.unified-content-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 15px;
  border-bottom: 2px solid #fff5f2;
  padding-bottom: 8px;
}

.unified-content-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 25px;
  margin-bottom: 12px;
}

.unified-content-card p {
  color: #475569;
  font-size: 15px;
  margin-bottom: 15px;
}

/* Core Facts Gray Box */
.core-facts-container {
  background: #f8fafc;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.core-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.info-row-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-icon-wrapper {
  width: 36px;
  height: 36px;
  background: #fff5f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5722;
  flex-shrink: 0;
}

.info-text-wrapper h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.info-text-wrapper p {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Travel Method Inside Gray Box */
.travel-method {
  margin-bottom: 15px;
}

.travel-method:last-of-type {
  margin-bottom: 0;
}

.travel-method h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.travel-method h5 svg {
  color: #ff5722;
  flex-shrink: 0;
}

.travel-method p {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 0;
  padding-left: 24px;
}

.action-btn-container {
  margin-top: 20px;
}

.btn-sidebar-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff5722 0%, #ff7a45 100%);
  color: white;
  text-align: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.15);
}

.btn-sidebar-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.25);
}

/* Badges Program */
.acts-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.act-badge {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
}

.act-badge.highlight-orange {
  background-color: #fff5f2;
  border: 1px solid #ffd0c2;
  color: #ff5722;
  font-weight: 700;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ====================================================
   5. LIGHTBOX / MODAL SYSTEM
==================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 35px;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ff5722;
}

/* ====================================================
   6. FOOTER
==================================================== */
footer {
  background: #ffffff;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

/* ====================================================
   7. RESPONSIVE MEDIA QUERIES
==================================================== */
@media (max-width: 1024px) {
  nav.desktop-nav, .nav-right-actions {
    display: none !important;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .main-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .unified-content-card {
    padding: 20px;
  }
  .event-detail-header h1 {
    font-size: 26px;
  }
}