/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  overflow: hidden;
  z-index: 100000;
  cursor: default;
  user-select: none;
  display: none;
}

.announcement-banner.active {
  display: block;
}

.announcement-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
  z-index: 0;
}

.announcement-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 60px;
  gap: 12px;
}

.announcement-banner-sparkle {
  font-size: 16px;
  animation: ann-sparkle 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ann-sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

.announcement-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
  text-align: center;
}

.announcement-banner-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.announcement-banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
  padding: 0;
  line-height: 1;
}

.announcement-banner-close:hover {
  background: rgba(239,68,68,0.4);
  border-color: rgba(239,68,68,0.5);
  color: #fff;
}

/* ===== LIGHT THEME ===== */
body.light-theme .announcement-banner-bg {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
}

body.light-theme .announcement-banner-text {
  color: #1e293b;
  text-shadow: none;
}

body.light-theme .announcement-banner-countdown {
  background: rgba(0,0,0,0.08);
  color: #b45309;
}

body.light-theme .announcement-banner-close {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.5);
}

body.light-theme .announcement-banner-close:hover {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
}

/* ===== MOBİL UYUM ===== */
@media (max-width: 768px) {
  .announcement-banner {
    height: 40px;
  }
}
