/* Announcement Dialog Styles */
.announcement-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

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

.announcement-dialog {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  max-height: 90vh;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.8) translateY(-50px);
  transition: all 0.4s ease-out;
}

.announcement-overlay.show .announcement-dialog {
  transform: scale(1) translateY(0);
}

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

.announcement-close:hover {
  background: #e82c4c;
  transform: scale(1.1);
}

.announcement-content {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.announcement-image {
  background: linear-gradient(135deg, #e82c4c 0%, #c41e3a 100%);
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.announcement-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
}

.announcement-img {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

.announcement-text {
  padding: 30px 40px 40px;
  text-align: center;
}

.announcement-text h2 {
  color: #52565e;
  font-family: 'Ubuntu', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.announcement-text p {
  color: #364d59;
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.announcement-actions {
  display: flex;
  justify-content: center;
}

.announcement-btn {
  background: #e82c4c;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  color: white;
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
}

.announcement-btn:hover {
  background: #c41e3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(228, 44, 76, 0.3);
  color: white;
  text-decoration: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .announcement-dialog {
    width: 95%;
    max-width: 400px;
    margin: 20px;
  }
  
  .announcement-text {
    padding: 25px 25px 35px;
  }
  
  .announcement-text h2 {
    font-size: 24px;
  }
  
  .announcement-text p {
    font-size: 15px;
  }
  
  .announcement-image {
    padding: 30px 15px;
  }
  
  .announcement-img {
    max-width: 150px;
    max-height: 80px;
  }
}

@media (max-width: 480px) {
  .announcement-dialog {
    width: 95%;
    margin: 10px;
  }
  
  .announcement-text {
    padding: 20px 20px 30px;
  }
  
  .announcement-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .announcement-text p {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .announcement-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* Full Image Dialog Styles */
.announcement-content {
  display: flex;
  flex-direction: column;
  position: relative;
}

.announcement-image-full {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .announcement-dialog {
    width: 95%;
    max-width: 400px;
    margin: 20px;
  }
  
  .announcement-image-full {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .announcement-dialog {
    width: 95%;
    margin: 10px;
  }
  
  .announcement-image-full {
    max-height: 60vh;
  }
}

/* Accessibility */
.announcement-dialog:focus {
  outline: 3px solid #e82c4c;
  outline-offset: 2px;
}

/* Print styles - hide dialog when printing */
@media print {
  .announcement-overlay {
    display: none !important;
  }
}
