/* =============================================
   Hero Banner System — Design B (Gold Frame Card)
   File: /static/css/hero-banner.css

   구조: heading(제목, 골드) + title(내용, 흰색)
   ============================================= */

/* --- Banner Stack Container --- */
.hero-banner-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Banner Card (Registered) --- */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(214,179,106,0.3);
  height: 120px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-banner:hover {
  border-color: #d6b36a;
  box-shadow: 0 0 20px rgba(214,179,106,0.15), 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

/* Banner Image */
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.5s ease;
}

.hero-banner:hover img {
  transform: scale(1.05);
}

/* Bottom Gradient Bar */
.hero-banner .banner-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  padding: 20px 16px 12px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* Banner Info (제목 + 내용 2줄 wrapper) */
.hero-banner .banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 80%;
}

/* Banner Heading (제목 — 골드, 상단) */
.hero-banner .banner-heading {
  color: #d6b36a;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Banner Title (내용 — 흰색, 하단) */
.hero-banner .banner-title {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* heading 없이 title만 있을 때 — 골드색 유지 (하위 호환) */
.hero-banner .banner-info:not(:has(.banner-heading)) .banner-title {
  color: #d6b36a;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Banner Button (50% reduced) */
.hero-banner .banner-btn-outline {
  padding: 3px 8px;
  border: 1px solid #d6b36a;
  border-radius: 4px;
  color: #d6b36a;
  font-size: 0.65rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  align-self: flex-end;
}

.hero-banner .banner-btn-outline:hover {
  background: #d6b36a;
  color: #0a0b10;
}

/* --- Banner Card (Coming Soon / Unregistered) --- */
.hero-banner.coming-soon {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.hero-banner.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255,255,255,0.06);
}

.hero-banner .coming-soon-text {
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */

/* Tablet: 768px ~ 1024px */
@media (max-width: 1024px) {
  .hero-banner-stack {
    flex-direction: row;
    gap: 16px;
  }

  .hero-banner {
    flex: 1;
    height: 110px;
  }

  .hero-banner .banner-heading {
    font-size: 0.8rem;
  }

  .hero-banner .banner-title {
    font-size: 0.7rem;
  }

  .hero-banner .banner-btn-outline {
    padding: 2px 6px;
    font-size: 0.55rem;
  }

  .hero-banner .banner-bottom {
    padding: 14px 10px 8px;
  }
}

/* Mobile: 480px ~ 768px */
@media (max-width: 768px) {
  .hero-banner-stack {
    gap: 8px;
  }

  .hero-banner {
    height: 100px;
    border-radius: 10px;
  }

  .hero-banner .banner-heading {
    font-size: 0.75rem;
  }

  .hero-banner .banner-title {
    font-size: 0.65rem;
  }

  .hero-banner .banner-btn-outline {
    display: none;
  }

  .hero-banner .banner-bottom {
    padding: 10px 8px 6px;
  }

  .hero-banner .banner-info {
    max-width: 95%;
  }
}

/* Small Mobile: < 480px */
@media (max-width: 480px) {
  .hero-banner {
    height: 85px;
    border-radius: 8px;
  }

  .hero-banner .banner-heading {
    font-size: 0.7rem;
  }

  .hero-banner .banner-title {
    font-size: 0.6rem;
  }
}
