/* Ad Manager Pro — Front-end Styles */

.amp-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

/* Ad items */
.amp-ad-item {
  transition: opacity .4s ease, transform .4s ease;
}
.amp-ad-hidden {
  display: none;
  opacity: 0;
}
.amp-ad-active {
  display: block;
  opacity: 1;
}
.amp-ad-fade-out {
  opacity: 0;
  transform: scale(.98);
}
.amp-ad-fade-in {
  animation: ampFadeIn .4s ease forwards;
}
@keyframes ampFadeIn {
  from { opacity:0; transform:scale(.98); }
  to   { opacity:1; transform:scale(1); }
}

/* Unit container */
.amp-unit {
  display: block;
  width: 100%;
  overflow: hidden;
}
.amp-unit img, .amp-unit iframe { max-width: 100%; height: auto; display: block; }

/* Predefined sizes */
.amp-size-leaderboard      { max-width: 728px; }
.amp-size-medium-rect      { max-width: 300px; }
.amp-size-large-rect       { max-width: 336px; }
.amp-size-half-page        { max-width: 300px; }
.amp-size-wide-skyscraper  { max-width: 160px; }
.amp-size-billboard        { max-width: 970px; }
.amp-size-mobile-banner    { max-width: 320px; }
.amp-size-responsive       { width: 100%; }
.amp-size-custom           { /* width/height set inline by JS */ }

/* Navigation dots */
.amp-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
}
.amp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.amp-dot-active, .amp-dot:hover {
  background: #2563eb;
  transform: scale(1.3);
}

/* Image ads */
.amp-image { display: block; width: 100%; height: auto; border-radius: 4px; }
.amp-link   { display: block; text-decoration: none; }
.amp-link:hover .amp-image { opacity: .92; }

/* Rich media */
.amp-rich-media { width: 100%; }

/* Click / prev-next nav for 'click' mode */
.amp-click-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.amp-nav-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #475569;
  transition: background .2s;
}
.amp-nav-btn:hover { background: #e2e8f0; }
