/* DocuConvert Pro - Google AdSense Multi-Placement Stylesheet */

/* Global Ad Container Wrapper */
.adsense-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Header Leaderboard Ad (728x90 / Responsive) */
.ad-header-leaderboard {
  max-width: 1000px;
  min-height: 90px;
  margin: 1.25rem auto;
}

/* In-Feed Tool Grid Ad Card */
.ad-grid-card {
  grid-column: span 1;
  min-height: 280px;
  background: var(--bg-card);
  border: 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Workspace Inline Ad Banners */
.ad-workspace-inline {
  width: 100%;
  min-height: 95px;
}

/* Post-Conversion Result Banner (High CTR) */
.ad-result-banner {
  width: 100%;
  max-width: 760px;
  min-height: 100px;
  margin-top: 1.25rem;
}

/* Footer Banner Ad */
.ad-footer-banner {
  max-width: 1000px;
  min-height: 90px;
  margin: 2rem auto 1rem auto;
}

/* Sticky Anchor Bottom Ad Bar */
.sticky-ad-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

.sticky-ad-inner {
  position: relative;
  width: 100%;
  max-width: 728px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-sticky-ad {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-rose);
  color: #ffffff;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 10;
}

.btn-close-sticky-ad:hover {
  transform: scale(1.1);
  background: var(--accent-red);
}

/* AdSense Demo Placeholder Styling */
.ad-placeholder {
  width: 100%;
  height: 100%;
  min-height: 90px;
  background: var(--bg-card);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-dim);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.ad-placeholder:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.ad-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.ad-placeholder-text {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ad-placeholder-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Hide placeholder when real Google AdSense iframe is loaded */
.adsbygoogle[data-ad-status="filled"] + .ad-placeholder {
  display: none !important;
}

@media (max-width: 768px) {
  .sticky-ad-bar {
    padding: 0.35rem 0.5rem;
  }
}
