/* =========================================================
   ETKINLIKLER MODERN PAGE CSS
   Genel sidebar/header/mobile-nav assets/css/style.css içinden gelir.
   ========================================================= */
body {
  margin: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(111, 210, 255, .09), transparent 34%),
    radial-gradient(circle at bottom left, rgba(138, 43, 226, .10), transparent 32%),
    #0c0f16;
}

#sidebar.collapsed { width: 80px !important; }
#sidebar.collapsed .menu-text { display: none !important; }
#sidebar.collapsed ~ .main-content,
body.sidebar-collapsed .main-content {
  margin-left: 80px !important;
  max-width: calc(100% - 80px) !important;
}
#sidebar.collapsed ~ .topbar,
body.sidebar-collapsed .topbar {
  left: 80px !important;
  width: calc(100% - 80px) !important;
}

@media (min-width: 993px) {
  .main-content {
    margin-left: 240px;
    max-width: calc(100% - 240px);
  }
}

@media (max-width: 992px) {
  #sidebar {
    left: -100% !important;
    width: 270px;
    max-width: 86vw;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2500;
    transition: left .3s ease;
  }
  #sidebar.active,
  body.sidebar-open #sidebar { left: 0 !important; }
  .main-content,
  body.sidebar-collapsed .main-content,
  #sidebar.collapsed ~ .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
  .topbar,
  body.sidebar-collapsed .topbar,
  #sidebar.collapsed ~ .topbar {
    left: 0 !important;
    width: 100% !important;
  }
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  visibility: hidden;
  opacity: 0;
  z-index: 2400;
  transition: opacity .25s ease, visibility .25s ease;
}
#overlay.active,
body.sidebar-open #overlay {
  visibility: visible;
  opacity: 1;
}

.main-content {
  position: relative;
  min-height: 100vh;
  padding: 105px 32px 45px;
  background: transparent;
  transition: margin-left .3s ease, max-width .3s ease;
}
.event-page {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
}

/* === Hero === */
.event-hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  margin-bottom: 24px;
}
.event-hero-card,
.event-summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
}
.event-hero-card {
  min-height: 235px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(111,210,255,.20), transparent 38%),
    linear-gradient(135deg, rgba(18,24,42,.94), rgba(10,13,20,.98));
}
.event-hero-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(138,43,226,.20), transparent 66%);
}
.event-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dff5ff;
  background: rgba(111,210,255,.10);
  border: 1px solid rgba(111,210,255,.18);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.event-eyebrow i { color: #6fd2ff; }
.event-hero h1 {
  position: relative;
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.9rem, 3.2vw, 3.15rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.045em;
}
.event-hero h1 span {
  color: #6fd2ff;
  text-shadow: 0 0 22px rgba(111,210,255,.32);
}
.event-hero p {
  position: relative;
  max-width: 700px;
  margin: 14px 0 0;
  color: #aeb8c8;
  font-size: .98rem;
  line-height: 1.65;
}
.event-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #f5f8ff;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 800;
}
.event-pill i { color: #8a2be2; }
.event-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(138,43,226,.18), transparent 42%),
    linear-gradient(180deg, rgba(20,25,38,.96), rgba(9,12,19,.98));
}
.event-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 95px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.052);
  border: 1px solid rgba(255,255,255,.075);
}
.event-stat i { color: #6fd2ff; font-size: 1.2rem; }
.event-stat span { color: #8f9aaa; font-size: .76rem; font-weight: 800; }
.event-stat strong { color: #fff; font-size: 1.25rem; font-weight: 950; }

/* === Section / Toolbar === */
.section-header,
.social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.section-header-left,
.social-header-left {
  display: flex;
  align-items: center;
}
.section-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 13px;
  background: linear-gradient(180deg, rgba(111,210,255,.15), rgba(111,210,255,.04));
  border: 1px solid rgba(111,210,255,.16);
  box-shadow: 0 0 18px rgba(111,210,255,.08);
}
.section-icon i { color: #6fd2ff; font-size: 18px; }
.section-text h2 { margin: 0; font-size: 1.2rem; font-weight: 950; letter-spacing: -0.02em; }
.section-text p { margin: 4px 0 0; color: #8f9aaa; font-size: .86rem; }
.sponsor-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  font-size: .9rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(59,130,246,.18);
  transition: .25s ease;
}
.sponsor-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.event-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0 24px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.event-search { position: relative; width: 100%; }
.event-search input {
  width: 100%;
  height: 48px;
  padding: 0 50px 0 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  outline: none;
  font-size: .92rem;
  transition: .25s ease;
}
.event-search input:focus {
  border-color: rgba(111,210,255,.35);
  box-shadow: 0 0 0 4px rgba(111,210,255,.08);
}
.event-search i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #6fd2ff;
}

/* === Event Cards === */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.event-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(111,210,255,.11), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(111,210,255,.28);
  box-shadow: 0 22px 48px rgba(0,0,0,.36), 0 0 24px rgba(111,210,255,.10);
}
.event-logo-wrap {
  position: relative;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.07);
}
.event-thumb {
  width: 100%;
  max-width: 240px;
  max-height: 110px;
  object-fit: contain;
  filter: brightness(.96) drop-shadow(0 10px 18px rgba(0,0,0,.25));
  transition: transform .3s ease, filter .3s ease;
}
.event-card:hover .event-thumb {
  transform: scale(1.06);
  filter: brightness(1.08) drop-shadow(0 14px 24px rgba(0,0,0,.34));
}
.event-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #eafff2;
  background: rgba(24,175,95,.13);
  border: 1px solid rgba(24,175,95,.22);
  font-size: .68rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.event-card h3 {
  margin: 0 0 12px;
  min-height: 46px;
  color: #eef2ff;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
  text-align: center;
}
.event-info {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
}
.event-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #d8dee9;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.065);
  font-size: .82rem;
}
.event-info-row strong {
  color: #8f9aaa;
  font-size: .76rem;
  font-weight: 850;
}
.event-info-row span {
  color: #fff;
  font-weight: 850;
  text-align: right;
}
.event-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: auto;
}
.btn {
  min-height: 44px;
  border: none;
  border-radius: 15px;
  color: #fff;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .25s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn.detay { background: linear-gradient(135deg,#ffb347,#ff7847); }
.btn.katil { background: linear-gradient(135deg,#22c55e,#16a34a); }
.btn.site  {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg,#5b86e5,#36d1dc);
}
.event-site-link { display: block; text-decoration: none; }
.event-empty {
  grid-column: 1 / -1;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9aa6b8;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}
.event-empty i { color: #6fd2ff; }
.event-empty-filter {
  display: none;
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  color: #9aa6b8;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.event-empty-filter i { color: #6fd2ff; margin-right: 8px; }

/* === Popups === */
.event-popup,
#messagePopup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(5px);
  z-index: 10000;
}
.event-popup.active,
#messagePopup.active { display: flex; }
.popup-content,
#messagePopup .popup-box {
  width: 100%;
  max-width: 460px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(111,210,255,.13), transparent 40%),
    linear-gradient(180deg, rgba(20,25,38,.98), rgba(9,12,19,.99));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: popupFade .28s ease;
}
#messagePopup .popup-box {
  max-width: 430px;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  text-align: center;
  font-size: .95rem;
  font-weight: 900;
}
.popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.popup-content h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}
.popup-content p {
  color: #cfd6e3;
  line-height: 1.65;
  font-size: .9rem;
}
.close-popup {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.075);
  cursor: pointer;
}
.close-popup:hover { background: linear-gradient(135deg,#8a2be2,#3b82f6); }
.popup-details {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.popup-details div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
  color: #d8dee9;
}
.popup-details strong { color: #6fd2ff; }
@keyframes popupFade {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* === Social === */
.social-section { margin: 60px 0; }
.social-header { justify-content: flex-start; }
.social-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.social-box {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  transition: .25s ease;
}
.social-box:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(111,210,255,.18); }
.social-left { width: 46px; height: 46px; flex: 0 0 46px; display:flex; align-items:center; justify-content:center; border-radius:14px; background:rgba(255,255,255,.06); }
.social-left img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.social-right { min-width: 0; text-align: left; }
.social-right h3 { margin: 0 0 3px; color: #fff; font-size: .95rem; font-weight: 950; }
.social-right p { margin: 0; color: #9aa6b8; font-size: .8rem; line-height: 1.35; }

@media (max-width: 1200px) {
  .event-hero { grid-template-columns: 1fr; }
  .social-boxes { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 992px) {
  body { padding-bottom: 100px !important; }
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 76px 14px 20px !important;
    transform: none !important;
    overflow: visible !important;
  }
  .event-page { max-width: 100%; }
  .event-hero-card, .event-summary-card, .event-toolbar { border-radius: 22px; }
  .event-hero-card { min-height: auto; padding: 22px; }
  .event-toolbar { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; }
}
@media (max-width: 560px) {
  .main-content { padding-left: 12px !important; padding-right: 12px !important; }
  .event-hero h1 { font-size: 1.75rem; }
  .event-hero p { font-size: .9rem; }
  .event-summary-card { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; gap: 14px; }
  .event-buttons { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; }
  .sponsor-btn { width: 100%; }
  .social-boxes { grid-template-columns: 1fr; gap: 12px; }
  .social-box { min-height: 76px; }
}