:root{
  --radius: 14px;
  --border: #e6e6e6;
  --text: #141414;
  --muted: #6b6b6b;
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --shadow-soft: 0 6px 18px rgba(0,0,0,.06);
  --danger-1: #ff2f2f;
  --danger-2: #ff7b7b;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  background: #fff; /* sayfa arka planina renk vermeyin */
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

a{ color: inherit; }

a:hover{ text-decoration: none; }

.wrap{
  max-width: 980px;
  margin: 28px auto;
  padding: 0 14px;
}

.board{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.board-title{
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: .2px;
}

.notice-empty{
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 14px;
  color: var(--muted);
}

.notice-empty.notice-error{
  border-style: solid;
  border-color: #ffb0b0;
  color: #b00000;
}

.notice-item{
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}

.notice-head{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0;
  background: #f6f6f6;
  cursor: pointer;
  text-align: left;
}

.notice-head:hover{
  background: #f0f0f0;
}

.notice-dt{
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.notice-title{
  font-size: 15px;
  font-weight: 650;
  flex: 1 1 auto;
}

.notice-icon{
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  opacity: .75;
  transition: transform .18s ease;
}

.notice-item.is-open .notice-icon{
  transform: rotate(180deg);
}

.notice-body{
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
  background: #fff;
  border-top: 1px solid var(--border);
}

.notice-body-inner{
  padding: 12px;
  color: #2c2c2c;
  white-space: pre-wrap;
}

/* En son duyuru: baslik kirmizi yanip soner */
.notice-item.is-latest .notice-head{
  color: #fff;
  animation: latestBlink .9s infinite;
}

.notice-item.is-latest .notice-dt{
  background: #fff;
  color: #111;
  border-color: rgba(255,255,255,.65);
}

.notice-item.is-latest .notice-title,
.notice-item.is-latest .notice-icon{
  color: #fff;
  opacity: 1;
}

@keyframes latestBlink{
  0%, 100%{ background: var(--danger-1); }
  50%{ background: var(--danger-2); }
}

/* Skeleton */
#list-skeleton{ display: none; margin-bottom: 12px; }

.skeleton{
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 12px;
}

.skeleton .bar{
  height: 14px;
  margin: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2f2f2, #e8e8e8, #f2f2f2);
  background-size: 300% 100%;
  animation: shimmer 1.1s infinite;
}

@keyframes shimmer{
  0%{ background-position: 0% 0%; }
  100%{ background-position: 100% 0%; }
}

/* Pagination (bootstrap'siz calisir) */
nav[aria-label="Sayfalama"]{ margin-top: 4px; }

.pagination{
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-item{ display: block; }

.page-link{
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}

.page-link:hover{ background: #f4f4f4; }

.page-item.active .page-link{
  background: #1c1c1c;
  color: #fff;
  border-color: #1c1c1c;
}

.page-item.disabled .page-link{ cursor: not-allowed; color: #9a9a9a; }

.page-item.disabled span.page-link{
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #9a9a9a;
  background: #fff;
}
