/* ===== Gallery Lightbox ===== */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease forwards;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ===== Announcement Popup Modal ===== */

.announcement-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.announcement-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.announcement-modal {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  padding: 32px;
  position: relative;
  animation: scaleIn 0.35s ease forwards;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .announcement-modal {
  background: #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.announcement-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.announcement-modal-close:hover {
  color: var(--gray-700);
}

.announcement-modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.announcement-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

[data-theme="dark"] .announcement-modal h3 {
  color: #f1f5f9;
}

.announcement-modal p {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.95rem;
}

[data-theme="dark"] .announcement-modal p {
  color: #94a3b8;
}

.announcement-modal-date {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary-600);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

[data-theme="dark"] .announcement-modal-date {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.announcement-modal-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--primary-600);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.announcement-modal-btn:hover {
  background: var(--primary-700);
}
