/* ================================
   Announcement Bar
   ================================ */

.announcement-bar {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 10px 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001; /* Above header */
  display: none; /* Hidden by default, shown via JS */
  animation: slideDown 0.5s ease-out forwards;
}

.announcement-bar.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}

.announcement-content {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-right: 30px;
  line-height: 1.4;
}

.announcement-content a {
  color: white;
  text-decoration: underline;
  margin-left: 5px;
}

.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Adjust header position when announcement is present */
body.has-announcement .header {
  top: calc(16px + 44px); /* Approximate height of announcement bar */
  transition: top 0.3s ease;
}

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

.notice-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10002;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.notice-modal-overlay.visible {
  display: flex;
  animation: fadeIn 0.3s ease-out forwards;
}

.notice-modal {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.1s;
}

.notice-modal-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 24px;
  color: white;
  position: relative;
}

.notice-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-modal-body {
  padding: 24px;
}

.notice-message {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
}

.notice-contact {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.notice-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
}

.notice-contact-item:last-child {
  margin-bottom: 0;
}

.notice-contact-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
}

.notice-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.notice-btn-close {
  padding: 10px 20px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.notice-btn-close:hover {
  background: #4f46e5;
}

.notice-btn-hide {
  padding: 10px 20px;
  background: transparent;
  color: #64748b;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.notice-btn-hide:hover {
  color: #334155;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  body.has-announcement .header {
    top: calc(12px + 60px); /* More space for mobile due to text wrap */
  }
}
