/* public/css/banner.css */
/* Banner & Trust Badge Styling - Zero CLS, Policy Compliant */

/* ─── 1. Category Navigation Banner ─── */
.banner-wrapper {
  margin: 16px 0 24px;
  width: 100%;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 120px;
  max-height: 160px;
  box-sizing: border-box;
}

.banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 77, 140, .25);
}

.banner--category {
  background: linear-gradient(135deg, #0a4d8c 0%, #1a6fb8 100%);
}

.banner__content {
  flex: 1;
  min-width: 0;
}

.banner__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: #ffffff;
}

.banner__sub {
  margin: 0;
  font-size: 14px;
  opacity: .95;
  color: #f0f6fc;
}

.banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: #f59e0b;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  white-space: nowrap;
  margin-left: 20px;
  text-decoration: none;
  transition: background .2s ease;
}

.banner__cta:hover {
  background: #d97706;
  color: #ffffff;
}

@media (max-width: 640px) {
  .banner {
    min-height: 100px;
    max-height: 130px;
    padding: 16px 18px;
  }
  .banner__title { font-size: 18px; }
  .banner__sub { font-size: 12px; }
  .banner__cta {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 12px;
    margin-left: 12px;
  }
}

/* ─── 2. Top Alert Banner ─── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fff7e6;
  border-left: 4px solid #f59e0b;
  font-size: 14px;
  color: #4a3200;
  border-radius: 4px;
  margin: 10px 0 16px;
}

.alert-banner__dot {
  width: 9px;
  height: 9px;
  background: #f59e0b;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.15); }
}

.alert-banner__text {
  flex: 1;
  line-height: 1.4;
}

.alert-banner__link {
  font-weight: 600;
  color: #0a4d8c;
  text-decoration: none;
  white-space: nowrap;
}

.alert-banner__link:hover {
  text-decoration: underline;
}

.alert-banner__close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
  padding: 0 4px;
}

.alert-banner__close:hover {
  opacity: 1;
}

/* ─── 3. CLS-Safe Ad Slots ─── */
.ad-slot {
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  border-radius: 4px;
  border: 1px dashed #e2e8f0;
  overflow: hidden;
}

.ad-slot--leaderboard {
  width: 100%;
  max-width: 728px;
  aspect-ratio: 728 / 90;
  min-height: 90px;
}

.ad-slot--rectangle {
  width: 300px;
  height: 250px;
}

.ad-slot--mobile {
  width: 320px;
  height: 50px;
}

.ad-slot__label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 640px) {
  .ad-slot--leaderboard { display: none !important; }
}
@media (min-width: 641px) {
  .ad-slot--mobile { display: none !important; }
}

/* ─── 4. Sticky Bottom Mobile CTA ─── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 999;
  border-top: 1px solid #e2e8f0;
}

.sticky-cta__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sticky-cta__content strong {
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta__content span {
  font-size: 11px;
  color: #64748b;
}

.sticky-cta__btn {
  margin-left: auto;
  background: #0a4d8c;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.sticky-cta__close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
}

@media (min-width: 641px) {
  .sticky-cta { display: none !important; }
}

/* ─── 5. Verification & Grounding Badges ─── */
.verification-meta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.badge--verified {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge--review {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.source-grounding-line {
  font-size: 12px;
  color: #475569;
}

.source-grounding-line a {
  color: #0a4d8c;
  text-decoration: underline;
  font-weight: 500;
}
