/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* AdSense and Advertisement Styling */
.ad-container {
  max-width: 100%;
  padding: 0 1rem;
  text-align: center;
  overflow: hidden;
}

.ad-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.adsbygoogle {
  display: block;
  margin: 0 auto;
  background: transparent;
}

/* Responsive ad container */
@media (max-width: 768px) {
  .ad-container {
    padding: 0 0.5rem;
  }
  
  /* Hide desktop banner on mobile, show mobile banner */
  .ad-container .adsbygoogle[style*="728px"] {
    width: 320px !important;
    height: 50px !important;
  }
}

@media (max-width: 320px) {
  .ad-container {
    padding: 0 0.25rem;
  }
}

/* Ensure ads don't break layout */
.ad-container ins {
  max-width: 100%;
  height: auto;
}

/* Ad container spacing in different contexts */
.venn-container .ad-container:first-child {
  margin-top: 0;
}

.venn-container .ad-container:last-child {
  margin-bottom: 0;
}

/* Premium user - ensure no ad containers show */
.premium-user .ad-container {
  display: none !important;
}
