/*
  Shared TatariHub ad slots — discrete, in-flow only.
  Wire AdSense later by replacing .ad-placeholder with <ins class="adsbygoogle">
  and setting window.TATARIHUB_ADS in js/ads-config.js (see ads-config.example.js).
  Never place these in the homepage hero or inside interactive editors.
*/

.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
}

.ad-slot--section {
  padding: 8px 16px 4px;
}

.ad-slot--footer {
  padding: 8px 16px 20px;
  border-top: 1px solid rgba(74, 50, 112, 0.35);
  background: rgba(8, 2, 20, 0.25);
}

.ad-slot--inline {
  margin: 16px auto 0;
  max-width: 760px;
  padding: 0;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px dashed rgba(109, 77, 154, 0.55);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.025) 0 8px,
      transparent 8px 16px
    ),
    rgba(12, 6, 24, 0.45);
  color: #9b86b8;
  text-align: center;
}

.ad-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b0e0;
}

.ad-size {
  font-size: 10px;
  color: #8a74a8;
}

.ad-placeholder--728x90 {
  width: min(728px, 100%);
  height: 90px;
}

.ad-placeholder--320x50 {
  width: min(320px, 100%);
  height: 50px;
}

.ad-placeholder--320x100 {
  width: min(320px, 100%);
  height: 100px;
}

.ad-slot--desktop-only .ad-placeholder--320x50,
.ad-slot--desktop-only .ad-placeholder--320x100 {
  display: none;
}

.ad-slot--mobile-only {
  display: none;
}

.ad-slot--responsive .ad-placeholder--320x50,
.ad-slot--responsive .ad-placeholder--320x100 {
  display: none;
}

@media (max-width: 760px) {
  .ad-slot--desktop-only {
    display: none;
  }

  .ad-slot--mobile-only {
    display: flex;
  }

  .ad-slot--responsive .ad-placeholder--728x90 {
    display: none;
  }

  .ad-slot--responsive .ad-placeholder--320x50,
  .ad-slot--responsive .ad-placeholder--320x100 {
    display: flex;
  }
}
