/* === SHORIX AD STYLES === */

/* General ad container */
.ad-container {
  display: flex;
  justify-content: center;
  margin: 24px auto;
  padding: 0 16px;
}

/* Banner ad (leaderboard 728x90) */
.ad-banner {
  max-width: 728px;
  width: 100%;
  min-height: 90px;
}

/* In-content ad */
.ad-in-content {
  max-width: 100%;
  margin: 28px auto;
}

/* AdSense responsive ad wrapper */
.ad-container .adsbygoogle {
  display: block;
  text-align: center;
}

/* Ad label (optional "Advertisement" text above ad) */
.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #999);
  text-align: center;
  margin-bottom: 6px;
}

/* Watch Ad Modal ad container */
.ad-modal-container {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg, #f8f8f8);
}

.ad-modal-container .adsbygoogle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback ad placeholder (when no ad loaded) */
.ad-placeholder {
  width: 100%;
  height: 250px;
  border: 2px dashed var(--border, #e0e0e0);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #999);
  font-size: 0.9rem;
  background: var(--input-bg, #f8f8f8);
}

.ad-placeholder i {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--primary, #4f46e5);
}

.ad-placeholder span {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Ad timer (watch ad modal) */
.ad-timer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #999);
  margin-bottom: 4px;
}

/* Ad progress bar */
.ad-progress-bar {
  height: 6px;
  background: var(--border, #e0e0e0);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.ad-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary, linear-gradient(135deg, #4f46e5, #7c3aed));
  border-radius: 3px;
  transition: width 1s linear;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ad-banner {
    max-width: 100%;
    min-height: 60px;
  }

  .ad-container {
    margin: 16px auto;
  }

  .ad-modal-container {
    max-width: 300px;
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .ad-container {
    margin: 12px auto;
    padding: 0 8px;
  }
}
