/* Duyurular — site */
.ann-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: .22rem .6rem;
  border-radius: .5rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ann-color, #6366f1);
  background: color-mix(in srgb, var(--ann-color, #6366f1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ann-color, #6366f1) 35%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  box-sizing: border-box;
}
.ann-cat-chip svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
}

.ann-toast-opts {
  margin-top: .75rem;
  padding: .85rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--admin-border, #e2e8f0);
  background: var(--admin-bg-muted, #f8fafc);
  display: grid;
  gap: .75rem;
}
.ann-toast-opts[hidden] { display: none !important; }
.ann-view-flags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.ann-quill-wrap {
  min-height: 220px;
  background: var(--admin-bg-elevated, #fff);
  border-radius: 0 0 .65rem .65rem;
}
.ann-quill-wrap .ql-editor {
  min-height: 200px;
  font-size: .95rem;
  line-height: 1.55;
}
.mod-field .ql-toolbar.ql-snow {
  border-radius: .65rem .65rem 0 0;
  border-color: var(--admin-border, #e2e8f0);
  background: var(--admin-bg-muted, #f8fafc);
}
.mod-field .ql-container.ql-snow {
  border-radius: 0 0 .65rem .65rem;
  border-color: var(--admin-border, #e2e8f0);
}

.ann-cat-form {
  border: 1px solid var(--admin-border, #e2e8f0);
  border-radius: .85rem;
  padding: .9rem 1rem;
  background: var(--admin-bg-muted, #f8fafc);
  display: grid;
  gap: .75rem;
}
.ann-cat-form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.ann-cat-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: .75rem;
}

/* Site liste / detay */
.ann-site__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}
.ann-site__head h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
}
.ann-site__head > .ann-cat-chip { margin: 0; }
.ann-site__head p { color: var(--menu-muted, var(--muted, #64748b)); margin: 0 0 1.25rem; }
.ann-site__empty { color: var(--menu-muted, var(--muted, #64748b)); }
.ann-site__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ann-site__item {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px solid var(--bs-border-color, rgba(15, 23, 42, .08));
  border-radius: .75rem;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg, #fff);
  transition: border-color .15s, background .15s;
}
.ann-site__item:hover {
  border-color: color-mix(in srgb, var(--ann-color, var(--brand, #0ea5e9)) 45%, var(--bs-border-color, #94a3b8));
}
[data-bs-theme="dark"] .ann-site__item {
  border-color: #2c2c2e;
  background: var(--card-bg, #121214);
  color: var(--ink, #e8edf4);
}
[data-bs-theme="dark"] .ann-site__item:hover {
  border-color: color-mix(in srgb, var(--ann-color, #38bdf8) 35%, #2c2c2e);
}
[data-bs-theme="dark"] .ann-site__title {
  color: #f1f5f9;
}
[data-bs-theme="dark"] .ann-site__head p,
[data-bs-theme="dark"] .ann-site__empty,
[data-bs-theme="dark"] .ann-site__date,
[data-bs-theme="dark"] .ann-site__back a,
[data-bs-theme="dark"] .ann-site__pager {
  color: #cbd5e1;
}
[data-bs-theme="dark"] .ann-site__body,
[data-bs-theme="dark"] .ann-site__body p {
  color: #e2e8f0;
}
.ann-site__item .ann-cat-chip { justify-self: start; }
.ann-site__title {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ann-site__date {
  font-size: .8rem;
  color: var(--menu-muted, var(--muted, #94a3b8));
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ann-site__item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "chip date"
      "title title";
    gap: .4rem .75rem;
  }
  .ann-site__item .ann-cat-chip { grid-area: chip; }
  .ann-site__title { grid-area: title; }
  .ann-site__date { grid-area: date; align-self: start; }
}
.ann-site__body {
  margin-top: 1.25rem;
  line-height: 1.65;
  font-size: 1.02rem;
  max-width: 48rem;
}
.ann-site__body p { margin: 0 0 0.85rem; }
.ann-site__body p:last-child { margin-bottom: 0; }
.ann-site__body ul,
.ann-site__body ol { margin: 0 0 0.85rem; padding-left: 1.35rem; }
.ann-site__body a { color: var(--ann-color, #6366f1); }
.ann-site__back { margin-bottom: .75rem; }
.ann-site__back a { color: var(--muted, #64748b); text-decoration: none; }
.ann-site__pager {
  display: flex; gap: 1rem; align-items: center; margin-top: 1.25rem;
  font-size: .9rem; color: var(--muted, #64748b);
}

/* Footer duyurular */
.footer-announcements__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  min-height: 1.25rem;
}

.footer-announcements h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
  margin: 0;
  line-height: 1.25rem;
}

.footer-announcements .ann-foot-all {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25rem;
  color: #7dd3fc;
  text-decoration: none;
  white-space: nowrap;
}

.footer-announcements .ann-foot-all:hover {
  color: #fff;
}

.footer-announcements .ann-foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.footer-announcements .ann-foot-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 0.65rem;
  color: rgba(248, 250, 252, 0.95);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.footer-announcements .ann-foot-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-announcements .ann-foot-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ann-color, #38bdf8);
  background: color-mix(in srgb, var(--ann-color, #38bdf8) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--ann-color, #38bdf8) 28%, transparent);
}

.footer-announcements .ann-foot-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.footer-announcements .ann-foot-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.footer-announcements .ann-foot-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.footer-announcements .ann-foot-meta {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ann-color, #38bdf8) 70%, #fff);
  background: color-mix(in srgb, var(--ann-color, #38bdf8) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ann-color, #38bdf8) 22%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-announcements .ann-foot-empty {
  color: rgba(248, 250, 252, 0.65);
  font-size: 0.88rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 980px) {
  .footer-announcements {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin-inline-start: 0;
  }

  /* Yeni ft-layout stilleri kendi boşluklarını yönetir */
  .site-footer:not(.ft-layout) .footer-announcements .ann-foot-list {
    gap: 0;
  }

  .site-footer:not(.ft-layout) .footer-announcements .ann-foot-item {
    margin: 0;
    border-radius: 0;
    padding: 0.85rem 0;
  }

  .site-footer:not(.ft-layout) .footer-announcements .ann-foot-item:hover {
    background: transparent;
    color: #fff;
  }
}
