/* =========================================================
   PODR DUYURU MODALI - KURUMSAL RENKLERLE DÜZENLENMİŞ SÜRÜM
   ========================================================= */

:root {
  /* Logo (CSS'ten yönetilir) */
  --ann-logo-image: url("images/mtü-logo.png");

  /* Kurumsal Renkler */
  --mtu-navy: #262F59;    /* Kurumsal Lacivert */
  --mtu-cyan: #12A7CD;    /* Kurumsal Turkuaz */
  --mtu-gold: #B99C71;    /* Kurumsal Altın */
  --mtu-orange: #EF7F1A;  /* Kurumsal Turuncu */
  --mtu-gray: #727271;    /* Kurumsal Gri */
}

/* Duyuru Arkaplan */
.ann-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 30, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99998;
  display: none;
}

/* Modal Konteyner */
.ann-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

/* Kart */
.ann-card {
  background-color: var(--white);
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(38, 47, 89, 0.10);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);

  animation: ann-slide-up 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

/* Üst renk şeridi */
.ann-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--mtu-navy),
    var(--mtu-cyan),
    var(--mtu-gold),
    var(--mtu-orange)
  );
}

/* Başlık */
.ann-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;

  background: linear-gradient(
    180deg,
    rgba(38, 47, 89, 0.06) 0%,
    rgba(18, 167, 205, 0.06) 55%,
    rgba(255, 255, 255, 1) 100%
  );

  border-bottom: 1px solid rgba(38, 47, 89, 0.08);
}

.ann-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Logo */
.ann-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;

  background-image: var(--ann-logo-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
  flex: 0 0 auto;
}

.ann-brandText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ann-brandTop {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--mtu-navy);
  letter-spacing: -0.01em;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-brandBottom {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(38, 47, 89, 0.68);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kapat */
.ann-close {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;

  font-size: 1.05rem;
  color: var(--white);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(18, 167, 205, 0.95);
  box-shadow: 0 10px 24px rgba(18, 167, 205, 0.18);

  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ann-close:hover {
  transform: translateY(-1px);
  background: rgba(239, 127, 26, 0.95);
  box-shadow: 0 12px 28px rgba(239, 127, 26, 0.22);
}

.ann-close:focus-visible {
  outline: 3px solid rgba(18, 167, 205, 0.35);
  outline-offset: 2px;
}

/* Gövde */
.ann-body {
  padding: 16px 22px 22px 22px;
  max-height: 58vh;
  overflow-y: auto;
}

/* Duyuru etiketi */
.ann-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;

  color: var(--mtu-navy);
  background: rgba(18, 167, 205, 0.12);
  border: 1px solid rgba(185, 156, 113, 0.32);

  margin-bottom: 10px;
}

/* Duyuru başlığı (accent çizgi) */
.ann-annTitle {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(38, 47, 89, 0.92);
  letter-spacing: -0.01em;

  position: relative;
  padding-left: 12px;
}

.ann-annTitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;

  width: 4px;
  height: 1.1em;
  border-radius: 999px;

  background: linear-gradient(180deg, var(--mtu-gold), var(--mtu-orange));
}

/* Mesaj */
.ann-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(114, 114, 113, 0.95);

  white-space: pre-wrap;   /* ALT SATIR + çoklu boşlukları korur */
  overflow-wrap: anywhere; /* uzun metinde taşma olmasın */
}

/* Alt */
.ann-footer {
  padding: 14px 22px 18px 22px;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(38, 47, 89, 0.08);
}

/* Buton */
.ann-btn.primary {
  border: none;
  width: 100%;
  padding: 12px 0;
  border-radius: 14px;

  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;

  color: var(--white);
  background: linear-gradient(90deg, var(--mtu-navy), var(--mtu-cyan));
  box-shadow: 0 14px 34px rgba(38, 47, 89, 0.22);

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ann-btn.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    90deg,
    var(--mtu-navy),
    var(--mtu-cyan),
    rgba(239, 127, 26, 0.55)
  );
  box-shadow: 0 18px 42px rgba(38, 47, 89, 0.28);
}

.ann-btn.primary:focus-visible {
  outline: 3px solid rgba(18, 167, 205, 0.35);
  outline-offset: 2px;
}

/* Scrollbar */
.ann-body::-webkit-scrollbar { width: 6px; }
.ann-body::-webkit-scrollbar-track { background: #f2f4f7; }
.ann-body::-webkit-scrollbar-thumb { background: #c9cfd8; border-radius: 999px; }

/* Animasyon */
@keyframes ann-slide-up {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobil */
@media (max-width: 480px) {
  .ann-card { max-width: 100%; }
  .ann-brandTop { font-size: 0.86rem; }
  .ann-brandBottom { font-size: 0.82rem; }
}
