/* ============================================================
   Article Sidebar Ad Slots
   Desktop: Right sidebar (min 1200px viewport)
   Mobile/Tablet: No sidebar, ads hidden or inline
   ============================================================ */

/* Article layout wrapper with sidebar */
.article-with-sidebar {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1200px) {
  .article-with-sidebar {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* Main content area */
.article-main-content {
  flex: 1;
  min-width: 0;
}

@media (min-width: 1200px) {
  .article-main-content {
    max-width: calc(100% - 320px);
  }
}

/* Sidebar area */
.article-sidebar {
  display: none;
}

@media (min-width: 1200px) {
  .article-sidebar {
    display: block;
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
  }
}

/* Ad slot styling */
.ad-slot {
  width: 100%;
  min-height: 250px;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.ad-slot:hover {
  border-color: #cbd5e1;
}

/* Ad slot sizes */
.ad-slot-300x250 {
  min-height: 250px;
  max-width: 300px;
}

.ad-slot-300x600 {
  min-height: 600px;
  max-width: 300px;
}

.ad-slot-160x600 {
  min-height: 600px;
  max-width: 160px;
}

/* When ads are filled, remove the dashed border */
.ad-slot.filled {
  border-style: none;
  background: transparent;
  color: transparent;
}

/* Ad label (small text above ad) */
.ad-label {
  font-size: 0.625rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  text-align: center;
}

/* Inline ad (within article content, between paragraphs) */
.ad-slot-inline {
  width: 100%;
  min-height: 100px;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.75rem;
}

.ad-slot-inline.filled {
  border-style: none;
  background: transparent;
  color: transparent;
}

/* Responsive: show inline ads on mobile */
@media (max-width: 1199px) {
  .ad-slot-sidebar-only {
    display: none !important;
  }
}
