/* ============================================
   AD SPACES STYLING
   ============================================ */

/* Ad Space Container */
.ad-space {
  position: relative;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ad Label */
.ad-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

/* Ad Placeholder (when no ad is set) */
.ad-space:empty::before {
  content: 'Espaço Publicitário';
  display: block;
  color: #d1d5db;
  font-size: 1rem;
  font-weight: 600;
}

/* Ad Space Sizes */
.ad-space.ad-leaderboard {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.ad-space.ad-rectangle {
  min-height: 250px;
  max-width: 300px;
}

.ad-space.ad-skyscraper {
  min-height: 600px;
  max-width: 160px;
}

.ad-space.ad-banner {
  min-height: 60px;
  max-width: 468px;
  margin: 0 auto;
}

/* Responsive Ad Spaces */
@media (max-width: 768px) {
  .ad-space {
    min-height: 200px;
  }
  
  .ad-space.ad-leaderboard,
  .ad-space.ad-banner {
    max-width: 100%;
  }
}

/* Ad Space Hover Effect */
.ad-space:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
  transition: all 0.3s ease;
}

/* Ad Content Styling */
.ad-space img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.ad-space iframe {
  max-width: 100%;
  border: none;
  border-radius: 8px;
}

/* Ad Space in Sidebar */
.sidebar .ad-space {
  margin-bottom: 1.5rem;
}

/* Ad Space in Content */
.content .ad-space {
  margin: 2rem auto;
}

/* Dark Mode Support */
.dark .ad-space {
  background: #1f2937;
  border-color: #374151;
}

.dark .ad-label {
  color: #6b7280;
}

.dark .ad-space:empty::before {
  color: #4b5563;
}
