/* ==========================================================================
   PostVibe Studio - Classy Ad & Monetization Styling
   Subtle, non-intrusive, high-converting placements
   ========================================================================== */

.ad-slot {
  position: relative;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-label {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.ad-rectangle {
  width: 100%;
  height: 200px;
}

.ad-demo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 4px;
}

.ad-demo-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.ad-demo-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.ad-demo-subtext {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Affiliate Recommendations (Refined, Classy) */
.affiliate-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.affiliate-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.affiliate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.affiliate-item:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.affiliate-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.affiliate-icon {
  font-size: 0.95rem;
}

.affiliate-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.affiliate-perk {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.affiliate-tag {
  font-size: 0.65rem;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Post-Download Interstitial Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.export-success-box {
  text-align: center;
  padding: 4px 0 12px 0;
}

.export-success-icon {
  width: 40px;
  height: 40px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.export-success-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.export-success-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.modal-ad-container {
  margin: 12px 0;
  min-height: 180px;
}

.modal-footer-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
