/* ================================
   ANNOUNCEMENT BAR STYLES (Modern & Clean)
   ================================ */

:root {
  --announcement-bar-height: 50px;
}

/* Announcement bar container */
.announcement-bar {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, #133a1f 0%, #1a4f2a 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  max-height: var(--announcement-bar-height);
  transition: opacity 0.3s ease;
}

.announcement-bar.visible {
  opacity: 1;
}

.announcement-bar.expanded {
  position: relative;
  z-index: 11002;
  overflow: visible;
}

body.announcement-expanded {
  overflow: hidden;
}

body.announcement-expanded::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 11000;
  transition: all 0.3s ease;
}

/* Inner wrapper */
.announcement-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: var(--announcement-bar-height);
  position: relative;
  background: transparent;
}

/* Message container for rotation */
.announcement-messages {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Single message styling */
.announcement-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  opacity: 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  height: 100%;
  transition: opacity 0.4s ease-in-out;
}

.announcement-bar.visible .announcement-message.active {
  opacity: 1;
  z-index: 2;
}

.announcement-message .icon {
  flex-shrink: 0;
  font-size: 13px;
  color: #ff9933; /* Slightly softer orange */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.announcement-message .text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 400; /* Regular weight for cleaner look */
  line-height: var(--announcement-bar-height);
  color: #fcfcfc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Redesigned Button - Pill style */
.announcement-details-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: transparent;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 6px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

@media (hover: hover) {
  .announcement-details-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
  }
}

.announcement-details-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Dropdown */
.announcement-dropdown {
  position: fixed;
  top: var(--announcement-bar-height);
  left: 0;
  right: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 11001;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.announcement-bar.expanded .announcement-dropdown {
  max-height: calc(100vh - var(--announcement-bar-height));
  opacity: 1;
  padding: 40px 48px;
  overflow-y: auto;
  pointer-events: auto;
}

/* Clean Typography inside Dropdown */
.announcement-dropdown-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a4f2a;
  margin: 0 0 16px;
}

.announcement-dropdown-content {
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.announcement-dropdown-content p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a4a4a; /* Softer text color */
}

.announcement-dropdown-content p:last-child {
  margin-bottom: 0;
}

.announcement-dropdown-content .announcement-contact {
  margin-top: 12px;
  color: #666;
}

.announcement-dropdown-content .announcement-contact a {
  color: #1a4f2a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

@media (hover: hover) {
  .announcement-dropdown-content .announcement-contact a:hover {
    color: #ff8400;
    border-bottom-color: #ff8400;
  }
}

.announcement-dropdown-content .announcement-closing {
  font-size: 13.5px;
  color: #888;
  margin-top: 24px;
}

.announcement-message .text a {
  color: #ff9933;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .announcement-message .text a:hover {
    color: #ffb347;
  }
}

/* Indicators */
.announcement-indicators {
  display: flex;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}

.announcement-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-indicator.active {
  background: #ffffff;
  transform: scale(1.3);
}

@media (hover: hover) {
  .announcement-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
  }
}

/* Nav arrows */
.announcement-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 8px;
  font-size: 12px;
  transition: all 0.2s ease;
  display: none;
}

@media (hover: hover) {
  .announcement-nav:hover {
    color: #ffffff;
  }
}

.announcement-nav.prev { left: 10px; }
.announcement-nav.next { right: 10px; }

.announcement-bar.has-multiple .announcement-nav {
  display: flex;
}

/* Mobile responsive */
@media (max-width: 768px) {
  :root {
    --announcement-bar-height: 48px;
  }
  
  .announcement-bar-inner {
    padding: 0 72px 0 16px; /* Space for burger menu */
  }

  .announcement-message {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0;
    gap: 10px;
  }

  .announcement-message .text {
    font-size: 13px;
  }

  .announcement-details-btn {
    font-size: 10.5px;
    padding: 5px 12px;
  }

  .announcement-bar.expanded .announcement-dropdown {
    height: calc(100vh - var(--announcement-bar-height));
    max-height: calc(100vh - var(--announcement-bar-height));
    padding: 32px 24px;
  }

  .announcement-dropdown-title {
    font-size: 16px;
  }

  .announcement-dropdown-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .announcement-indicators, .announcement-nav {
    display: none !important;
  }
}

@media (max-width: 480px) {
  :root {
    --announcement-bar-height: 44px;
  }

  .announcement-bar-inner {
    padding: 0 66px 0 12px;
  }

  .announcement-message {
    gap: 8px;
  }

  .announcement-message .text {
    font-size: 12.5px;
  }

  .announcement-details-btn {
    font-size: 10px;
    padding: 4px 10px;
  }

  .announcement-bar.expanded .announcement-dropdown {
    padding: 24px 16px;
  }

  .announcement-dropdown-content p {
    font-size: 13.5px;
  }

  .announcement-dropdown-title {
    font-size: 15px;
  }
}
