/* assets/css/ad-blocks.css */
/* SurferX Ad Block Styling — Clean placement system */

:root {
  --text: #eaffff;
  --muted: #8fb7c8;
  --gold: #ffd166;
  --cyan: #39d6ff;
  --panel: #071522;
  --line: rgba(116, 247, 178, 0.18);
}

/* ─────────────────────────────────────────────────────────
   AD CONTAINERS (Placeholder slots)
   ───────────────────────────────────────────────────────── */

[data-ad-slot] {
  min-height: 120px;
  margin: 16px auto;
  border-radius: 16px;
  background: rgba(7, 21, 34, 0.5);
}

[data-ad-slot='leaderboard'] {
  max-width: 728px;
  min-height: 90px;
}

[data-ad-slot='rectangle'] {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  min-height: 250px;
}

/* ─────────────────────────────────────────────────────────
   AD BLOCKS (Rendered)
   ───────────────────────────────────────────────────────── */

.ad-block {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(9, 27, 44, 0.86),
    rgba(7, 21, 34, 0.72)
  );
  overflow: hidden;
  transition: all 0.3s ease;
}

.ad-block:hover {
  border-color: rgba(57, 214, 255, 0.32);
  background: rgba(9, 27, 44, 0.95);
}

.ad-block.ad-fade-out {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ad-block.ad-fade-in {
  animation: adFadeIn 0.32s ease;
}

@keyframes adFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Leaderboard 728x90 */
.ad-block.ad-728x90 {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 16px auto;
}

.ad-block.ad-728x90 .ad-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-block.ad-728x90 .ad-image {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Medium Rectangle 300x250 */
.ad-block.ad-300x250 {
  width: 100%;
  max-width: 300px;
  height: 250px;
  margin: 16px auto;
}

.ad-block.ad-300x250 .ad-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-block.ad-300x250 .ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ─────────────────────────────────────────────────────────
   AD WRAPPER & LINK
   ───────────────────────────────────────────────────────── */

.ad-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.ad-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ad-link:hover {
  opacity: 0.95;
}

.ad-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ─────────────────────────────────────────────────────────
   AD LABEL & DISCLAIMER
   ───────────────────────────────────────────────────────── */

.ad-label {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.3);
  font-size: 10px;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0.85;
}

.ad-disclaimer {
  padding: 6px 8px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(57, 214, 255, 0.08);
  background: rgba(2, 6, 13, 0.3);
  line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────
   ADVERTISE WITH US SECTION
   ───────────────────────────────────────────────────────── */

.advertise-section {
  border: 1px solid rgba(116, 247, 178, 0.18);
  border-radius: 24px;
  padding: 40px;
  background: linear-gradient(
    180deg,
    rgba(9, 27, 44, 0.86),
    rgba(7, 21, 34, 0.72)
  );
  margin: 40px 0;
}

.advertise-section h2 {
  font-size: 32px;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.advertise-section .lead {
  font-size: 16px;
  color: #c4d9e2;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 0 28px;
}

.ad-sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.ad-size-card {
  border: 1px solid rgba(57, 214, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  background: rgba(2, 6, 13, 0.42);
}

.ad-size-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--cyan);
}

.ad-size-spec {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.ad-placement-list {
  margin: 20px 0;
}

.ad-placement-list h3 {
  font-size: 16px;
  color: var(--text);
  margin: 16px 0 12px;
}

.ad-placement-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.ad-placement-list li {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(57, 214, 255, 0.08);
  border: 1px solid rgba(57, 214, 255, 0.14);
  font-size: 13px;
  color: #d0e3e8;
}

.advertise-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #39d6ff, #74f7b2);
  color: #03101a;
  font-weight: 900;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 28px rgba(57, 214, 255, 0.24);
  margin-top: 20px;
}

.advertise-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(57, 214, 255, 0.32);
}

.advertise-cta:active {
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ad-block.ad-728x90 {
    max-width: calc(100vw - 32px);
    height: auto;
    aspect-ratio: 8 / 1;
  }

  .ad-block.ad-300x250 {
    max-width: calc(100vw - 32px);
    height: auto;
    aspect-ratio: 4 / 5;
  }

  [data-ad-slot='rectangle'] {
    max-width: calc(100vw - 32px);
  }

  .advertise-section {
    padding: 24px;
  }

  .advertise-section h2 {
    font-size: 24px;
  }

  .ad-sizes-grid {
    grid-template-columns: 1fr;
  }

  .ad-placement-list ul {
    grid-template-columns: 1fr;
  }
}
