/* ============================================================================
   components/event/event.css — Event Platform
   Community modülünün ölçü/renk dilini paylaşır (c-* sınıfları yeniden
   kullanılıyor); burada yalnızca etkinliğe ÖZGÜ parçalar var.
   ============================================================================ */

/* ------------------------------------------------------------- başlık */
.ev-status {
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(17, 24, 39, .62); color: #fff;
  font-size: 12px; font-weight: 800;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ev-head .c-head-body { padding-top: 18px; }

.ev-when, .ev-where {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
  font: inherit; text-align: left;
}
.ev-where { cursor: pointer; }
.ev-where:hover { border-color: var(--purple); }
.ev-when-ic {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 13px; background: var(--purple-softer); color: var(--purple);
}
.ev-when-ic svg { width: 18px; height: 18px; }
.ev-when > div, .ev-where > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ev-when b, .ev-where b { font-size: 15px; font-weight: 700; color: var(--ink); }
.ev-when i, .ev-where i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ev-where > svg { width: 18px; height: 18px; color: var(--muted-2); flex: 0 0 auto; }

.ev-hosts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ev-host {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); cursor: pointer; font: inherit;
}
.ev-host:hover { border-color: var(--purple); }
.ev-host-av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  overflow: hidden; color: #fff; font-size: 11px; font-weight: 800;
}
.ev-host-av.g1 { background: linear-gradient(135deg, #7C4DFF, #5B2BEA); }
.ev-host-av.g2 { background: linear-gradient(135deg, #FF7A59, #FF4D8D); }
.ev-host-av.g3 { background: linear-gradient(135deg, #22C1C3, #1A8FE3); }
.ev-host-av.g4 { background: linear-gradient(135deg, #F7971E, #FFD200); }
.ev-host-av.g5 { background: linear-gradient(135deg, #34D399, #059669); }
.ev-host-av img { width: 100%; height: 100%; object-fit: cover; }
.ev-host span:last-child { display: flex; flex-direction: column; }
.ev-host b { font-size: 13px; font-weight: 700; color: var(--ink); }
.ev-host i { font-style: normal; font-size: 11px; color: var(--muted); }

/* --------------------------------------------------------------- RSVP */
.ev-rsvp { display: flex; gap: 10px; margin-top: 18px; }
.ev-rsvp .c-btn { flex: 1; }
.ev-rsvp .c-btn.on { background: var(--purple-soft); color: var(--purple-deep); }
.ev-rsvp.done {
  justify-content: center; align-items: center; gap: 8px;
  padding: 14px; border-radius: 14px; background: var(--bg);
  color: var(--muted); font-size: 14px; font-weight: 700;
}
.ev-rsvp.done svg { width: 17px; height: 17px; }
.ev-checked {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 18px; border-radius: 14px;
  background: #ECFDF5; color: #15803D; font-size: 14px; font-weight: 700;
}
.ev-checked svg { width: 17px; height: 17px; }

/* -------------------------------------------------------------- harita */
.ev-map {
  width: 100%; height: 190px; border: 0; border-radius: 16px;
  background: var(--bg); display: block;
}
.ev-map.big { height: 260px; border-radius: 0; }
.ev-mapwrap { margin-bottom: 8px; }
.ev-addr { display: flex; flex-direction: column; gap: 3px; margin: 12px 0; }
.ev-addr b { font-size: 15px; color: var(--ink); }
.ev-addr span { font-size: 13.5px; color: var(--muted); }
.ev-pin {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 13px; background: var(--purple-softer); color: var(--purple);
}
.ev-pin svg { width: 18px; height: 18px; }
.ev-map-row { cursor: pointer; }
.ev-map-row:hover { background: var(--purple-softer); }

/* ---------------------------------------------------------------- kart */
.ev-card .c-card-cover { height: 132px; }
.ev-card.is-past { opacity: .68; }
.ev-date-badge {
  position: absolute; right: 12px; top: 12px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 46px; padding: 6px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ev-date-badge b { font-size: 18px; font-weight: 800; line-height: 1; }
.ev-date-badge i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }

/* --------------------------------------------------------------- galeri */
.ev-media-cell { position: relative; }
.ev-media-x {
  position: absolute; right: 6px; top: 6px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(17, 24, 39, .6); color: #fff;
}
.ev-media-x svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------ dashboard */
.ev-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 16px;
}
.ev-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px; border-radius: 16px; background: var(--bg);
}
.ev-stat b { font-size: 22px; font-weight: 800; color: var(--ink); }
.ev-stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: center; }
.ev-stat.ok b { color: #16A34A; }
.ev-stat.warn b { color: #B45309; }
.ev-dash-actions { display: flex; gap: 10px; padding: 0 16px 16px; }
.ev-dash-actions .c-btn { flex: 1; }

.ev-qr {
  margin: 16px 0; padding: 26px 18px; border-radius: 20px;
  background: var(--purple-softer); text-align: center;
}
.ev-qr code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px; font-weight: 800; letter-spacing: .12em; color: var(--purple-deep);
  word-break: break-all; line-height: 1.5;
}

/* --------------------------------------------------------------- sihirbaz */
.ev-steps {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 16px 6px; list-style: none;
}
.ev-steps::-webkit-scrollbar { display: none; }
.ev-steps li {
  display: flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 8px 13px; border-radius: 999px; background: var(--bg);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.ev-steps li span {
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--white); font-size: 11px;
}
.ev-steps li.on { background: var(--purple); color: #fff; }
.ev-steps li.on span { background: rgba(255, 255, 255, .25); color: #fff; }
.ev-steps li.done { background: var(--purple-soft); color: var(--purple-deep); }
.ev-wizard .c-panel { padding: 16px; }
.ev-latlng { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-theme {
  width: 38px; height: 38px; flex: 0 0 auto; border: 3px solid transparent;
  border-radius: 13px; cursor: pointer; padding: 0;
}
.ev-theme.on { border-color: var(--ink); }
.ev-theme.g1 { background: linear-gradient(135deg, #7C4DFF, #5B2BEA); }
.ev-theme.g2 { background: linear-gradient(135deg, #FF7A59, #FF4D8D); }
.ev-theme.g3 { background: linear-gradient(135deg, #22C1C3, #1A8FE3); }
.ev-theme.g4 { background: linear-gradient(135deg, #F7971E, #FFD200); }
.ev-theme.g5 { background: linear-gradient(135deg, #34D399, #059669); }
.ev-preview h2 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 14px 0 8px; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: #DC2626; }
.c-err { margin-top: 6px; font-size: 12.5px; color: #DC2626; font-weight: 600; }
.c-notice.warn { background: #FEF2F2; color: #B91C1C; }
.c-notice.warn svg { color: #DC2626; }

/* ------------------------------------------------------------ responsive */
@media (min-width: 700px) {
  .ev-head, .ev-steps, .ev-stats, .ev-dash-actions { max-width: 720px; margin-left: auto; margin-right: auto; }
  .ev-map { height: 240px; }
  .ev-map.big { height: 340px; }
}
@media (min-width: 1080px) {
  .ev-head, .ev-steps, .ev-stats, .ev-dash-actions { max-width: 860px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-host, .ev-where { transition: none; }
}
