/* Camptime.ca Sponsors — banner + sidebar styles */

/* ---- BANNER (top of page) ---- */
.ct-sponsor-banner {
  position: relative;
  width: 100%;
  height: 90px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.ct-sponsor-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px 0 20px; /* extra right padding for close + tag */
  position: relative;
}
.ct-sponsor-banner-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 6px 10px;
}
.ct-sponsor-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.ct-sponsor-banner-text strong {
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-sponsor-banner-sub {
  font-size: 0.85rem;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-sponsor-banner-cta {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.ct-sponsor-banner-cta:hover { transform: translateY(-1px); }
.ct-sponsor-banner-close {
  position: absolute;
  top: 8px; right: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  border: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ct-sponsor-banner-close:hover { background: rgba(0, 0, 0, 0.32); }

/* "Sponsored" tag */
.ct-sponsor-tag {
  position: absolute;
  top: 6px; right: 44px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* ---- BANNER mobile ---- */
@media (max-width: 768px) {
  .ct-sponsor-banner { height: 60px; }
  .ct-sponsor-banner-inner { padding: 0 50px 0 12px; gap: 10px; }
  .ct-sponsor-banner-logo { height: 36px; padding: 4px 6px; }
  .ct-sponsor-banner-text strong { font-size: 0.85rem; }
  .ct-sponsor-banner-sub { display: none; }
  .ct-sponsor-banner-cta { padding: 7px 12px; font-size: 0.8rem; }
  .ct-sponsor-banner-close { top: 6px; right: 8px; width: 22px; height: 22px; font-size: 15px; }
  .ct-sponsor-tag { top: 4px; right: 36px; font-size: 9px; padding: 1px 6px; }
}

/* ---- SIDEBAR (right rail under fuel cost) ---- */
.ct-sponsor-sidebar {
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fafbf7 0%, #f4f6ee 100%);
  border: 1px solid #e3e7d8;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.ct-sponsor-sidebar-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6a3e;
  margin: 0 0 12px 0;
}
.ct-sponsor-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e8ebde;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ct-sponsor-card:hover {
  transform: translateY(-1px);
  border-color: #c9d1b3;
  box-shadow: 0 4px 12px rgba(60, 80, 30, 0.08);
}
.ct-sponsor-card:last-of-type { margin-bottom: 0; }
.ct-sponsor-card .ct-sponsor-tag {
  position: absolute;
  top: 8px; right: 10px;
  background: #f0f2e8;
  color: #6a7848;
}
.ct-sponsor-card-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f8faf3;
}
.ct-sponsor-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ct-sponsor-card-body strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2a3a18;
  padding-right: 70px; /* space for "Sponsored" tag */
  line-height: 1.3;
}
.ct-sponsor-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: #4a5a3a;
  line-height: 1.4;
}
.ct-sponsor-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3f6e3f;
  margin-top: 4px;
}
.ct-sponsor-disclosure {
  font-size: 0.7rem;
  color: #7a8268;
  font-style: italic;
  margin: 10px 0 0 0;
  line-height: 1.4;
}

/* ---- SIDEBAR mobile (collapsed accordion-style) ---- */
@media (max-width: 768px) {
  .ct-sponsor-sidebar { padding: 10px; }
  .ct-sponsor-card { padding: 10px; gap: 10px; }
  .ct-sponsor-card-logo { width: 36px; height: 36px; }
  .ct-sponsor-card-body strong { font-size: 0.85rem; padding-right: 60px; }
  .ct-sponsor-card-body p { font-size: 0.78rem; }
}
