/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


*/

/* Glass buttons / chips (used instead of Tailwind Lite opacity utilities) */

.btn-glass {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
  transition:
    background-color 0.18s ease-out,
    color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.18s ease-out,
    border-color 0.18s ease-out;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #020617; /* slate-950-ish */
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
  transform: translateY(-1px);
}

.chip-glass {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
  transition:
    background-color 0.18s ease-out,
    color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.18s ease-out;
}

.chip-glass:hover {
  background: #10b981; /* emerald-500 style */
  border-color: #6ee7b7; /* emerald-300 style */
  color: #020617;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.45);
  transform: translateY(-1px);
}

/* Promo / announcement bar — slides down from top, dismissible */
.promo-bar {
  position: relative;
  z-index: 60;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.35s ease-out, max-height 0.35s ease-out, opacity 0.25s ease-out;
}
.promo-bar--hidden {
  transform: translateY(-100%);
  max-height: 0;
  opacity: 0;
}
.promo-bar--dismissed {
  transform: translateY(-100%);
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1rem 0.6rem 1rem;
  text-align: center;
  min-height: 2.75rem;
}
.promo-bar__message {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.promo-bar__cta {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.promo-bar__cta:hover {
  opacity: 0.9;
}
.promo-bar__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.promo-bar__close:hover {
  background: rgba(0, 0, 0, 0.25);
}
/* Theme: emerald (default) */
.promo-bar--emerald .promo-bar__inner {
  background: linear-gradient(90deg, #047857 0%, #059669 50%, #10b981 100%);
  color: #fff;
}
.promo-bar--emerald .promo-bar__cta {
  color: #fff;
}
/* Theme: dark (e.g. for contrast on light headers) */
.promo-bar--dark .promo-bar__inner {
  background: #0f172a;
  color: #e2e8f0;
}
.promo-bar--dark .promo-bar__cta {
  color: #a5f3fc;
}
/* Theme: amber (sale / urgency) */
.promo-bar--amber .promo-bar__inner {
  background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
  color: #fff;
}
.promo-bar--amber .promo-bar__cta {
  color: #fff;
}
