/**
 * Announcements Banner Styles
 * Modern and beautiful announcement modal
 */

.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.announcement-banner.show {
  opacity: 1;
  visibility: visible;
}

.announcement-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.announcement-modal {
  position: relative;
  background: white;
  border-radius: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideUp 0.4s ease-out;
}

.announcement-banner.show .announcement-modal {
  transform: scale(1);
}

@keyframes slideUp {
  from {
    transform: translateY(50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.announcement-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  color: #333;
  font-size: 18px;
}

.announcement-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.announcement-content {
  overflow-y: auto;
  max-height: 80vh;
}

.announcement-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.announcement-body {
  padding: 40px;
}

.announcement-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.announcement-message {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 30px 0;
  white-space: pre-wrap;
}

.announcement-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.announcement-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white;
  text-decoration: none;
}

.announcement-btn i {
  transition: transform 0.3s ease;
}

.announcement-btn:hover i {
  transform: translateX(4px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .announcement-modal {
    width: 95%;
    max-width: none;
    border-radius: 16px;
  }
  
  .announcement-image {
    height: 180px;
  }
  
  .announcement-body {
    padding: 24px;
  }
  
  .announcement-title {
    font-size: 22px;
  }
  
  .announcement-message {
    font-size: 14px;
  }
  
  .announcement-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .announcement-modal {
    background: #2a2a2a;
  }
  
  .announcement-title {
    color: #fff;
  }
  
  .announcement-message {
    color: #ccc;
  }
  
  .announcement-close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .announcement-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}


