/* Kart container */
.flip-card {
  perspective: 1000px;
  height: 100%;
}

/* İç kısım: yüksekliği sabitle / min-height ver */
.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 180px;          /* <-- asıl kritik nokta */
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* Hover’da kartı çevir */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Ön & arka yüzler */
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;                   /* top/right/bottom/left: 0; */
  backface-visibility: hidden;
  border-radius: 0.75rem;
}

.flip-card-back {
  transform: rotateY(180deg);
  /*background: linear-gradient(135deg, #4f46e5, #6366f1);*/
  color: #0f172a;
}

/* Status noktası */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.status-active {
  background-color: #22c55e;
}

.status-maintenance {
  background-color: #eab308;
}

.status-offline {
  background-color: #ef4444;
}

/* Kartların sayfaya giriş animasyonu (opsiyonel) */
.row.g-4 > [class^="col-"],
.row.g-4 > [class*=" col-"] {
  opacity: 0;
  transform: translateY(10px);
  animation: cardFadeIn 0.5s ease-out forwards;
}

.row.g-4 > [class^="col-"]:nth-child(1) { animation-delay: 0.05s; }
.row.g-4 > [class^="col-"]:nth-child(2) { animation-delay: 0.10s; }
.row.g-4 > [class^="col-"]:nth-child(3) { animation-delay: 0.15s; }
.row.g-4 > [class^="col-"]:nth-child(4) { animation-delay: 0.20s; }
/* 5. karttan sonrası animasyonsuz da kalsa olur, istersen benzer şekilde uzatabilirsin */

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Kartların genel görünümü – hafif cam/modern hissi */
.flip-card .card {
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.98)
  );
  border: 1px solid rgba(148, 163, 184, 0.4); /* slate-400 */
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.12);      /* normal gölge */
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

/* Kart hover – hafif yukarı kalksın + neon glow */
.flip-card:hover {
  transform: translateY(-6px);
  filter: brightness(1.03);
}

.flip-card:hover .card {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.80),      /* çevresinde neon kenar */
    0 18px 60px rgba(56, 189, 248, 0.35);    /* aşağıya mavi / neon ışık */
  border-color: rgba(56, 189, 248, 0.85);
}

/* Arka yüz zaten pastel renkle geliyor; glow'u biraz yumuşatmak için
   arka yüze hafif blur benzeri bir efekt ekleyebiliriz */
.flip-card-back {
  backdrop-filter: blur(4px);
}

/* Status noktaları için mini neon glow */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Normal renkler (zaten tanımlıysa aynen bırakabilirsin) */
.status-active {
  background-color: #22c55e;
}

.status-maintenance {
  background-color: #eab308;
}

.status-offline {
  background-color: #ef4444;
}

/* Hover sırasında status noktasına neon parıltı ve hafif büyüme */
.flip-card:hover .status-active {
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
  transform: scale(1.2);
}

.flip-card:hover .status-maintenance {
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.9);
  transform: scale(1.2);
}

.flip-card:hover .status-offline {
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
  transform: scale(1.2);
}

.navbar .nav-link.active {
  font-weight: 600;
  color: #38bdf8 !important;  /* neon cyan */
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.announcement-item {
  transition: background-color 0.2s ease, opacity 0.2s ease, border-left 0.2s ease;
}

/* Son 30 gün içindekiler */
.announcement-new {
  border-left: 4px solid #38bdf8;
  background-color: rgba(56, 189, 248, 0.04);
}

/* Daha eski duyurular: biraz soluk */
.announcement-old {
  opacity: 0.7;
}

.home-side-card {
  border-left: 4px solid #38bdf8;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: #f9fafb;
}

/* Arka planda hafif blur’lu gradient / görsel efekti */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/img/kasket-logo.png"); /* istersen ayrı bir bg görseli kullan */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.18;          /* çok baskın olmasın */
  filter: blur(2px);
}

.hero-overlay {
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-width: 260px;
  height: auto;
}

.ticker-bar {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  max-width: 720px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9); /* koyu lacivert */
  padding: 4px 12px;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 25s linear infinite;
}

.ticker-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin-right: 16px;
  color: #38bdf8; /* cyan */
}

.ticker-text strong {
  color: #f9fafb;
}

/* Çok kısa mesajlarda aşırı hızlı kaymasın diye istersen duration'la oynayabilirsin */
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


/* Timeline: 3 aya bölünmüş, kompakt grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.timeline-item {
  width: 100%;
  max-width: 360px;
  position: relative;
}

/* Pastel kart */
.timeline-card {
  position: relative;
  padding: 1rem 1.4rem 1.1rem 1.6rem;
  border-radius: 22px;
  background: linear-gradient(135deg,
    #fff7f7 0%,
    #ffeefe 45%,
    #f4f9ff 100%
  );
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Soldaki yuvarlak tarih balonu */
.timeline-datebadge {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.timeline-datebadge .day {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.timeline-datebadge .weekday {
  font-size: 0.65rem;
  color: #6b7280;
}

/* Kart içeriği */
.timeline-card .time-location {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
  padding-left: 1rem;
}

.timeline-card .title {
  font-size: 1rem;
  font-weight: 700;
  padding-left: 1rem;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

/* Kasket custom modal (Bootstrap JS'siz) */
#eventDetailModal {
  display: none !important;              /* Bootstrap .modal'ı kesin override et */
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.55);
  align-items: center;
  justify-content: center;
}

#eventDetailModal.kasket-modal-open {
  display: flex !important;
}

body.kasket-modal-open-body {
  overflow: hidden;
}

#eventDetailModal .modal-dialog {
  margin: 0;
}

