/* Convertathon.com - Ad Styles */

/* Ad Container Styles */
.ad-container {
  margin: 2rem 0;
  text-align: center;
  background-color: var(--light-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Horizontal Ad (728x90) */
.ad-container.horizontal {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin-left: auto;
  margin-right: auto;
}

/* Large Rectangle Ad (336x280) */
.ad-container.rectangle-large {
  width: 336px;
  height: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Medium Rectangle Ad (300x250) */
.ad-container.rectangle-medium {
  width: 300px;
  height: 250px;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar Ad */
.ad-container.sidebar {
  width: 300px;
  height: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Ad */
.ad-container.mobile {
  width: 320px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}

/* Affiliate Link Container */
.affiliate-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--light-gray);
  border-radius: 8px;
  text-align: center;
}

.affiliate-container h3 {
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.affiliate-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  text-decoration: none;
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.affiliate-link:hover {
  background-color: rgba(77, 157, 224, 0.1);
  text-decoration: none;
}

.affiliate-link img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.affiliate-link span {
  color: var(--dark-gray);
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .ad-container.horizontal {
    display: none;
  }
  
  .ad-container.mobile {
    display: flex;
  }
  
  .affiliate-links {
    flex-direction: column;
    align-items: center;
  }
  
  .affiliate-link {
    width: 100%;
    max-width: 300px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .ad-container.horizontal {
    max-width: 468px;
    height: 60px;
  }
}

/* Ad Placeholder Styles (for development) */
.ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #666;
  font-size: 0.9rem;
  border: 1px dashed #ccc;
}

.ad-placeholder p {
  margin: 0;
  padding: 0.5rem;
  text-align: center;
}
