/* Best Week Campaign Banner Styles */

.serenity-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  width: 100%;
  height: 48px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 14px;
  transform: translateY(-100%);
  animation: slide-down 0.5s ease-out forwards;
  border: none;
  border-bottom: none;
}

/* Push down the fixed header to make room for banner */
body:has(.serenity-banner) .visitor-header {
  top: 48px !important;
  height: 80px !important; /* Force consistent height */
  min-height: 80px !important;
  max-height: 80px !important;
}

/* Remove border from header when banner is present */
body:has(.serenity-banner) header {
  border-bottom: none !important;
  padding: 0px !important;
}


/* Adjust container to account for banner + header */
body:has(.serenity-banner) .container {
  height: calc(100vh - 128px) !important; /* Adjust for banner height */
  margin-top: 48px !important; /* Push down by banner (48px) + header (80px) */
  padding-top: 0 !important;
}

/* Ensure main content doesn't have extra padding */
body:has(.serenity-banner) .main-content {
  padding-top: 0 !important;
}

@keyframes slide-down {
  to {
    transform: translateY(0);
  }
}

/* Phase 1: Anunciação - No border */
.serenity-banner.phase-1 {
  /* Removed border for clean look */
}

/* Phase 2: Acolhimento - Stronger presence with glow, no border */
.serenity-banner.phase-2 {
  box-shadow: 0 2px 15px rgba(254, 175, 80, 0.2);
  animation: slide-down 0.5s ease-out forwards, pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 2px 15px rgba(254, 175, 80, 0.2);
  }
  50% {
    box-shadow: 0 2px 25px rgba(254, 175, 80, 0.4);
  }
}

.banner-content {
  text-align: center;
  flex-grow: 1;
}

.banner-icon {
  margin-right: 8px;
}

.banner-text {
  display: inline;
}

.banner-link {
  color: #feaf50;
  text-decoration: underline;
  font-weight: bold;
  margin-left: 8px;
  transition: color 0.2s ease;
}

.banner-link:hover {
  color: #ffc570;
}

.dismiss-btn {
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  padding: 0;
  margin-left: 16px;
}

.dismiss-btn:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .serenity-banner {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 8px 0 60px; /* Extra left padding for hamburger menu */
    font-size: 12px;
    gap: 4px;
  }

  .banner-content {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .banner-icon {
    flex-shrink: 0;
    font-size: 15px;
  }

  .banner-text {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide description text on mobile */
  .banner-description {
    display: none;
  }

  .banner-main-text {
    font-size: 12px;
    font-weight: bold;
  }

  .banner-link {
    display: inline;
    margin-left: 6px;
    font-size: 12px;
    text-decoration: underline;
    white-space: nowrap;
  }

  .dismiss-btn {
    flex-shrink: 0;
    padding: 4px 8px;
    margin-left: 4px;
    font-size: 24px;
    line-height: 1;
  }
}
