/* ===== Genel Body & Layout ===== */
body {
  background-color: #f8f9fa;
}

/* ===== Navbar ===== */
.nav-custom-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-custom-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.nav-custom-link.active,
.nav-custom-link.active:hover {
  background-color: #374151;
  color: #facc15 !important;
  font-weight: 600;
}

.nav-custom-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background-color: #facc15;
  border-radius: 1px;
}

/* ===== Accordion ve Duyuru Panosu ===== */
#annAccordion {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  overflow: visible;
  position: relative;
}

#collapseAnns {
  overflow: visible;
  position: relative;
}

#annAccordion .accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e9ecef;
  font-weight: 600;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

#annAccordion .accordion-button:not(.collapsed) {
  background-color: #dbe2ef;
}

#annAccordion .accordion-button:hover {
  background-color: #dee2e6;
}

#annAccordion .accordion-body {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  overflow: visible;
  position: relative;
}

/* ===== Duyuru Listesi ===== */
#announcements {
  max-height: 400px;
  overflow-y: visible; /* Scroll bar varsa görünür, taşmalar serbest */
  overflow-x: visible;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.5rem;
  background-color: #fff;
  position: relative;
  z-index: 0;
}

.list-group-item.announcement-item {
  border: 1px solid rgba(0, 0, 0, 0.125);
  flex-wrap: wrap;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  background-clip: padding-box;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-item.info {
  background-color: #cfe2ff;
}

.announcement-item.warning {
  background-color: #fff3cd;
}

.announcement-item.critical {
  background-color: #f8d7da;
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.announcement-details {
  max-width: 75%;
  word-break: break-word;
}

.announcement-text {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.announcement-meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.announcement-location {
  font-size: 0.85rem;
  color: #6c757d;
}

.ann-badge {
  padding: 0.35em 0.6em;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-top: 0.25rem;
  white-space: nowrap;
  align-self: flex-start;
}

/* Hover ve Okunmamış Etkiler */
.list-group-item.announcement-item:hover,
.list-group-item.announcement-item.announcement-unread {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.announcement-unread {
  background-color: #fff9c4;
  border-left: 6px solid #ffca28;
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.45);
  transform: translateY(-4px) scale(1.02);
  z-index: 10;
  position: relative;
  animation: unreadPulse 1s ease-in-out 0s 3;
}

.announcement-unread:hover {
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.6);
  transform: translateY(-5px) scale(1.03);
}

@keyframes unreadPulse {
  0% { box-shadow: 0 0 0 rgba(255, 193, 7, 0); }
  50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.8); }
  100% { box-shadow: 0 0 0 rgba(255, 193, 7, 0); }
}

/* ===== Duyuru Ekleme Formu ===== */
#annFormContainer .row {
  position: relative;
  align-items: center;
}

/* ===== Mahalle Arama ===== */
.list-group-scrollable {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

/* ===== Toast ===== */
.toast {
  border: none;
}

/* ===== Kart Düzeni (Card View) ===== */
.result-card {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.result-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.result-card .card-body {
  padding: 1rem;
}

/* ===== Spinner / Loader ===== */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

/* ===== “Sonuç Yok” Mesajı ===== */
.no-results {
  text-align: center;
  padding: 2rem 0;
  color: #6c757d;
}

.no-results svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
}

/* ===== Başlık Pulse Efekti ===== */
@keyframes headerPulse {
  0% { color: #212529; text-shadow: none; }
  50% { color: #d97706; text-shadow: 0 0 6px rgba(255, 193, 7, 0.8); }
  100% { color: #212529; text-shadow: none; }
}

#announcementHeader.pulse {
  animation: headerPulse 1.2s ease-in-out infinite;
  font-weight: 600;
}

/* ===== Ekstra Hover Etkiler ===== */
.scale-animate {
  transform: scale(1.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 20;
  position: relative;
}

.focus-highlight {
  border: 3px solid #d63384;
  box-shadow: 0 0 25px rgba(214, 51, 132, 0.8);
  background-color: #fff0f6;
  transform: scale(1.05);
  z-index: 25;
  position: relative;
  transition: all 0.3s ease;
}

/* ===== Mahalle Seçim Kutusu ===== */
#neighborhood-suggestions {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
}
