/* ============================================ */
/* QUANTOPICK AD LAYOUT - 3 Column             */
/* ============================================ */

/* Main wrapper: left sidebar + content + right sidebar */
.ad-page-wrapper {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  gap: 0;
}

/* Left sidebar */
.ad-sidebar-left {
  width: 160px;
  flex-shrink: 0;
  padding: 10px 8px;
}

/* Center content (existing page) */
.ad-content-center {
  flex: 1;
  min-width: 0;
}

/* Right sidebar */
.ad-sidebar-right {
  width: 160px;
  flex-shrink: 0;
  padding: 10px 8px;
}

/* Sticky sidebar ads */
.ad-sticky {
  position: sticky;
  top: 80px;
}

/* Ad unit container */
.ad-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.ad-unit:empty {
  display: none;
}

/* Top banner */
.ad-top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  background: var(--bg-primary);
  width: 100%;
}

.ad-top-banner .ad-unit {
  width: 100% !important;
  max-width: 100% !important;
}

.ad-top-banner .ad-unit > div {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

/* Footer banner */
.ad-footer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  background: var(--bg-primary);
  width: 100%;
}

.ad-footer-banner .ad-unit {
  width: 100% !important;
  max-width: 100% !important;
}

.ad-footer-banner .ad-unit > div {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

/* In-content ad (between sections) */
.ad-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  margin: 20px 0;
  width: 100%;
}

.ad-inline .ad-unit {
  width: 100% !important;
  max-width: 100% !important;
}

.ad-inline .ad-unit > div {
  width: 100% !important;
  max-width: 100% !important;
}

/* Screener grid inline ad card */
.ad-grid-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

/* Preview mode placeholders */
.ad-preview {
  background: rgba(66, 133, 244, 0.08);
  border: 2px dashed rgba(66, 133, 244, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
}

/* Responsive */
@media (max-width: 1280px) {
  .ad-sidebar-left {
    display: none;
  }
}

@media (max-width: 1024px) {
  .ad-sidebar-left,
  .ad-sidebar-right {
    display: none;
  }

  .ad-page-wrapper {
    display: block;
  }
}

/* Mobile inline ads (shown only on mobile) */
.ad-mobile-only {
  display: none;
}

@media (max-width: 1024px) {
  .ad-mobile-only {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
  }
}
