/* Styles for Advanced Ads */

/* Common container styles */
.advanceads-container {
  margin: 10px 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  position: relative; /* For sponsored label positioning */
}

/* Sponsored Ad Label */
.advanceads-sponsored-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 20;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.advanceads-container:hover .advanceads-sponsored-label {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

.advanceads-container:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Image ad styles */
.advanceads-image-ad {
  text-align: center;
}

.advanceads-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Text ad styles */
.advanceads-text-ad {
  padding: 18px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border: 1px solid #e9ecef;
  text-align: center;
  position: relative;
}

/* Special positioning for text ad sponsored label */
.advanceads-text-ad .advanceads-sponsored-label {
  top: 12px;
  right: 12px;
  left: auto;
  background: rgba(74, 85, 104, 0.9);
  color: white;
  font-size: 10px;
}

.advanceads-headline {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

.advanceads-description {
  font-size: 14px;
  color: #505a66;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Link styles */
.advanceads-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s ease;
  position: relative;
}

.advanceads-text-ad .advanceads-link:after {
  content: "Learn More →";
  display: inline-block;
  font-size: 14px;
  color: #3498db;
  margin-top: 8px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.advanceads-text-ad .advanceads-link:hover:after {
  transform: translateX(5px);
}

/* Position-specific styles */
[data-ad-placement^="left_sidebar"],
[data-ad-placement^="right_sidebar"] {
  width: 100%;
  margin: 0 0 25px 0;
  overflow: hidden;
}

/* Enhanced sidebar ad styling for better readability */
.advanceads-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.advanceads-sidebar-item {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.advanceads-sidebar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.advanceads-sidebar-item:last-child {
  margin-bottom: 0;
}

/* Larger sidebar images for better visibility */
.advanceads-sidebar-item .advanceads-image {
  width: 100%;
  
  
  object-fit: cover;
  transition: transform 0.3s ease;
}

.advanceads-sidebar-item:hover .advanceads-image {
  transform: scale(1.02);
}

/* Enhanced text styling for sidebar ads */
.advanceads-sidebar-item .advanceads-text-ad {
  padding: 25px 20px;
  background: linear-gradient(145deg, #f8fafe, #eef5ff);
  border: none;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advanceads-sidebar-item .advanceads-headline {
  font-size: 20px;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 12px;
  line-height: 1.3;
  text-align: center;
}

.advanceads-sidebar-item .advanceads-description {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: center;
}

/* Enhanced clickable link styling for sidebar */
.advanceads-sidebar-item .advanceads-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}

.advanceads-sidebar-item .advanceads-text-ad .advanceads-link:after {
  content: "Click to Learn More →";
  display: block;
  font-size: 14px;
  color: #3182ce;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  padding: 8px 15px;
  background: rgba(49, 130, 206, 0.1);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.advanceads-sidebar-item .advanceads-text-ad .advanceads-link:hover:after {
  background: rgba(49, 130, 206, 0.2);
  transform: translateX(3px);
}

/* Add click indicator for image ads */
.advanceads-sidebar-item .advanceads-image-ad .advanceads-link:after {
  content: "📍 Click to Visit";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.advanceads-sidebar-item .advanceads-image-ad:hover .advanceads-link:after {
  opacity: 1;
}

[data-ad-placement^="top_banner"],
[data-ad-placement^="middle_banner"],
[data-ad-placement^="bottom_banner"] {
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
  padding: 0 10px;
}

/* Enhanced styling for different positions */
[data-ad-placement^="top_banner"] {
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(249,250,251,0.5), rgba(255,255,255,0));
  padding: 15px 0;
  border-radius: 0;
}

/* Banner ad sponsored label positioning */
[data-ad-placement^="top_banner"] .advanceads-sponsored-label,
[data-ad-placement^="middle_banner"] .advanceads-sponsored-label,
[data-ad-placement^="bottom_banner"] .advanceads-sponsored-label {
  top: 20px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 12px;
  padding: 4px 10px;
}

[data-ad-placement^="middle_banner"] {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 0;
  margin: 30px auto;
}

[data-ad-placement^="bottom_banner"] {
  margin-top: 30px;
  margin-bottom: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  [data-ad-placement^="left_sidebar"],
  [data-ad-placement^="right_sidebar"] {
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  
  [data-ad-placement^="top_banner"],
  [data-ad-placement^="middle_banner"],
  [data-ad-placement^="bottom_banner"] {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .advanceads-image {
    max-width: 100%;
  }
  
  .advanceads-headline {
    font-size: 16px;
  }
  
  .advanceads-description {
    font-size: 13px;
  }
  
  /* Adjust container spacing on mobile */
  .advanceads-container {
    margin: 15px 0;
  }
  
  /* Mobile sidebar adjustments */
  .advanceads-sidebar-item .advanceads-image {
    min-height: 150px;
    
  }
  
  .advanceads-sidebar-item .advanceads-text-ad {
    padding: 20px 15px;
    min-height: 150px;
  }
  
  .advanceads-sidebar-item .advanceads-headline {
    font-size: 18px;
  }
  
  .advanceads-sidebar-item .advanceads-description {
    font-size: 14px;
  }
  
  .advanceads-sidebar-container {
    gap: 15px;
  }
  
  /* Mobile responsive adjustments for sponsored labels */
  .advanceads-sponsored-label {
    font-size: 10px;
    padding: 2px 6px;
    top: 5px;
    left: 5px;
  }
  
  .advanceads-text-ad .advanceads-sponsored-label {
    top: 8px;
    right: 8px;
    font-size: 9px;
  }
  
  [data-ad-placement^="top_banner"] .advanceads-sponsored-label,
  [data-ad-placement^="middle_banner"] .advanceads-sponsored-label,
  [data-ad-placement^="bottom_banner"] .advanceads-sponsored-label {
    top: 15px;
    left: 10px;
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Ad sizes */
.advanceads-size-square {
  width: 300px;
  height: 250px;
}

.advanceads-size-leaderboard {
  width: 728px;
  height: 90px;
}

.advanceads-size-skyscraper {
  width: 160px;
  height: 600px;
}

.advanceads-size-mobile {
  width: 320px;
  height: 50px;
}

/* Slider ads layout */
.advanceads-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.advanceads-slider-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.advanceads-slider-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.advanceads-slider-item {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advanceads-slider-item .advanceads-container {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
}

/* Slider controls */
.advanceads-slider-prev,
.advanceads-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.advanceads-slider-prev:hover,
.advanceads-slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.advanceads-slider-prev {
  left: 10px;
}

.advanceads-slider-next {
  right: 10px;
}

/* Slider indicators */
.advanceads-slider-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.advanceads-slider-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advanceads-slider-indicator span {
  display: none;
}

.advanceads-slider-indicator.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.advanceads-slider-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive adjustments for slider */
@media (max-width: 768px) {
  .advanceads-slider-prev,
  .advanceads-slider-next {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .advanceads-slider-prev {
    left: 5px;
  }
  
  .advanceads-slider-next {
    right: 5px;
  }
  
  .advanceads-slider-indicators {
    bottom: 10px;
  }
  
  .advanceads-slider-indicator {
    width: 10px;
    height: 10px;
  }
}
