/* ═══════════════════════════════
   ANNOUNCEMENTS SECTION
   ═══════════════════════════════ */

/* ── Stats Row ── */
.ann-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ann-stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 120px;
  transition: all var(--transition);
}

.ann-stat-chip:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.ann-stat-val {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.ann-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ann-stat-total .material-icons-outlined {
  color: var(--primary);
}

.ann-stat-active .material-icons-outlined {
  color: var(--green);
}

.ann-stat-expired .material-icons-outlined {
  color: var(--orange);
}

.ann-stat-inactive .material-icons-outlined {
  color: var(--text-muted);
}

/* ── Card Grid ── */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

@media (max-width: 740px) {
  .ann-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Card ── */
.ann-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-sm);
}

.ann-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.ann-card-dim {
  opacity: .55;
}

.ann-card-dim:hover {
  opacity: .75;
}

.ann-card-expired {
  border-left: 3px solid var(--orange);
}

/* ── Card Visual ── */
.ann-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ann-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.ann-card:hover .ann-card-img {
  transform: scale(1.05);
}

.ann-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ann-card-img-fallback .material-icons-outlined {
  font-size: 40px;
  color: rgba(255, 255, 255, .4);
}

.ann-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Status Badge ── */
.ann-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ann-status-badge .material-icons-outlined {
  font-size: 13px;
}

.ann-status-active {
  background: rgba(34, 197, 94, .2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .3);
}

.ann-status-inactive {
  background: rgba(107, 114, 128, .25);
  color: #d1d5db;
  border: 1px solid rgba(107, 114, 128, .3);
}

.ann-status-expired {
  background: rgba(245, 158, 11, .2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, .3);
}

/* ── Card Content ── */
.ann-card-content {
  padding: 16px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ann-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Card Footer ── */
.ann-card-footer {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ann-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ann-card-date,
.ann-card-expires {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ann-card-date .material-icons-outlined,
.ann-card-expires .material-icons-outlined {
  font-size: 13px;
  opacity: .7;
}

.ann-card-expires {
  color: var(--orange);
}

.ann-card-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ── Toggle Switch ── */
.ann-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

.ann-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ann-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--border);
  transition: background .25s ease, box-shadow .25s ease;
}

.ann-toggle input:checked + .ann-toggle-track {
  background: var(--green);
  box-shadow: 0 0 10px rgba(34, 197, 94, .35);
}

.ann-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.ann-toggle input:checked ~ .ann-toggle-thumb {
  transform: translateX(16px);
}

.ann-toggle:hover .ann-toggle-track {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.ann-toggle.ann-toggle-loading {
  opacity: .5;
  pointer-events: none;
}

/* ── Empty State ── */
.ann-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  text-align: center;
}

.ann-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(99, 102, 241, .15) 100%);
  margin-bottom: 20px;
}

.ann-empty-icon .material-icons-outlined {
  font-size: 32px;
  color: var(--primary);
}

.ann-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.ann-empty p {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.ann-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-shadow);
  transition: all .2s ease;
}

.ann-empty-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px var(--primary-shadow);
  transform: translateY(-1px);
}

.ann-empty-cta svg {
  width: 14px;
  height: 14px;
}

