/* ============================================================
   vendor-products.css — vendor marketplace card + banner styles
   Loaded after products.css. Uses existing GLP3 design tokens.
   ============================================================ */

/* ---------- Vendor badge (absolute-positioned on card) ---------- */
.vendor-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.vendor-badge--2 {
  background: linear-gradient(135deg, #1d4ed8, #0d9488);
  color: #fff;
}
.vendor-badge--3 {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* ---------- Tier-based card accents ---------- */
.vendor-card {
  position: relative;
}
.vendor-card--featured {
  border-color: rgba(29, 78, 216, 0.4);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.15);
}
.vendor-card--featured:hover {
  border-color: var(--blue-400);
  box-shadow: 0 12px 32px rgba(29, 78, 216, 0.25);
}
.vendor-card--sponsor {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
}
.vendor-card--sponsor:hover {
  border-color: #f59e0b;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
}

/* ---------- Vendor-specific card elements ---------- */
.vendor-price {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-500, #10b981);
  margin-top: var(--sp-1);
}
.vendor-byline {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
  letter-spacing: 0.01em;
}

/* ---------- Banner slots ---------- */
.vendor-banner-slot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  justify-content: center;
}
.vendor-banner {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  max-width: 100%;
  text-decoration: none;
}
.vendor-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.vendor-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
}
.vendor-banner-label {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Advertise page ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
}
.tier-card {
  background: var(--navy-800);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
}
.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.tier-card--popular {
  border-color: rgba(29, 78, 216, 0.5);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.2);
}
.tier-card--popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, #1d4ed8, #0d9488);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier-card--premium {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, var(--navy-800) 100%);
}
.tier-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--sp-2);
}
.tier-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 var(--sp-1);
  letter-spacing: -0.02em;
}
.tier-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.tier-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 var(--sp-5);
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  flex: 1;
}
.tier-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tier-features li::before {
  content: "✓";
  color: var(--green-500, #10b981);
  font-weight: 700;
  flex-shrink: 0;
}
.tier-cta {
  display: block;
  text-align: center;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-lg, 12px);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.tier-cta--primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(27, 122, 229, 0.3);
}
.tier-cta--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(27, 122, 229, 0.45);
}
.tier-cta--outline {
  background: transparent;
  color: var(--blue-400);
  border: 1px solid var(--border-glass);
}
.tier-cta--outline:hover {
  border-color: var(--blue-400);
  background: rgba(27, 122, 229, 0.08);
  transform: translateY(-1px);
}

/* ---------- In-grid ad card ---------- */
.vendor-grid-ad {
  display: flex;
  flex-direction: column;
  background: var(--navy-800);
  border: 2px dashed rgba(29, 78, 216, 0.4);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
}
.vendor-grid-ad:hover {
  transform: translateY(-4px);
  border-color: var(--blue-400);
  box-shadow: 0 12px 32px rgba(29, 78, 216, 0.2);
}
.vendor-grid-ad-img {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12) 0%, rgba(13, 148, 136, 0.10) 100%);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-6);
}
.vendor-grid-ad-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}
.vendor-grid-ad-img h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}
.vendor-grid-ad-img p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 200px;
}
.vendor-grid-ad .card-cta {
  color: var(--blue-400);
}

@media (max-width: 768px) {
  .tier-grid { grid-template-columns: 1fr; }
  .vendor-banner img { max-height: 80px; }
  .vendor-banner-hero {
    flex-direction: column !important;
    text-align: center;
    padding: var(--sp-6) var(--sp-5) !important;
    gap: var(--sp-4) !important;
  }
}

@media (max-width: 600px) {
  .vendor-banner img { max-height: 60px; }
}
