/* =========================================================
* FILE NAME     : banner.css
* FILE PATH     : /public/css/banner.css
* AUTHOR        : Oluwasegun Dayo Ogunsola
* VERSION       : 2.0.0
* DESCRIPTION   : Modular banner styling with full typographic and media support
* ========================================================= */
/* ---------------- BASE TYPOGRAPHY ---------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

.title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.quote {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-muted);
  border-left: 3px solid var(--color-primary);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

/* ---------------- BANNER STRUCTURE ---------------- */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  isolation: isolate;
}

.banner-media {
  position: relative;
  aspect-ratio: 3 / 1;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  z-index: 1;
}

.banner-image,
.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.6s ease;
  z-index: 1;
}

/* ---------------- OVERLAY ---------------- */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-light);
  background: linear-gradient(90deg, rgba(0,0,0,var(--opacity-mid)), rgba(0,0,0,var(--opacity-low)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner-ready .banner-overlay {
  opacity: var(--opacity-full);
}

/* ---------------- TEXT BLOCK ---------------- */
.banner-text {
  max-width: 600px;
}

.banner-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.banner-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.banner-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.banner-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.banner-cta:hover {
  background: #f89c3f;
}

/* ---------------- LABELS ---------------- */
.banner-labels {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.label {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  background: #f2f2f2;
  color: var(--color-dark);
}

.label.sale {
  background: var(--color-sale);
  color: var(--color-light);
}

.label.seasonal {
  background: var(--color-seasonal);
  color: var(--color-dark);
}

.label.special {
  background: var(--color-accent);
  color: var(--color-light);
}

/* ---------------- ANIMATION CLASSES ---------------- */
.rollin { animation: rollin 0.8s ease-out forwards; }
.zweive { animation: zweive 0.8s ease-out forwards; }
.beam { animation: beam 0.8s ease-out forwards; }
.zoom { animation: zoom 0.8s ease-out forwards; }
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.slide-up { animation: slideUp 0.6s ease-out forwards; }
.flip { animation: flip 0.6s ease-out forwards; }
.bounce { animation: bounce 0.6s ease-out forwards; }

@keyframes rollin {
  0% { transform: translateX(-100%) rotate(-360deg); opacity: 0; }
  100% { transform: translateX(0) rotate(0); opacity: 1; }
}
@keyframes zweive {
  0% { transform: scale(0.5) rotateY(180deg); opacity: 0; }
  100% { transform: scale(1) rotateY(0); opacity: 1; }
}
@keyframes beam {
  0% { transform: skewX(20deg); opacity: 0; }
  100% { transform: skewX(0); opacity: 1; }
}
@keyframes zoom {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes slideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes flip {
  0% { transform: rotateY(180deg); opacity: 0; }
  100% { transform: rotateY(0); opacity: 1; }
}
@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .banner-overlay {
    padding: 1rem;
  }

  .banner-title {
    font-size: 1.8rem;
  }

  .banner-subtitle {
    font-size: 1.3rem;
  }

  .quote {
    font-size: 0.9rem;
  }

  .banner-list {
    font-size: 0.85rem;
  }
}
