/**
 * Phase 5 — AdSense Ad Zones & Cookie Consent
 * @package GoTryTech
 */

/* ── Ad Zones ─────────────────────────────────────────────── */
.gtt-ad-zone {
  margin: var(--space-8) 0;
  overflow: hidden;
}

.gtt-ad-zone--article_sidebar {
  margin: var(--space-6) 0 0;
}

.gtt-ad-slot {
  margin: 0;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-height: 90px;
  justify-content: center;
}

.gtt-ad-zone--article_sidebar .gtt-ad-slot {
  min-height: 250px;
}

.gtt-ad-slot__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: 600;
}

.gtt-ad-slot__hint {
  font-size: var(--text-xs);
  opacity: 0.7;
}

.gtt-ad-unit {
  display: block;
  min-height: 90px;
}

.gtt-ad-zone--archive_inline,
.gtt-ad-zone--homepage_inline {
  grid-column: 1 / -1;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cookie Consent Banner ────────────────────────────────── */
.gtt-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-top, 9999);
  padding: var(--space-4);
  animation: gtt-slide-up 0.4s ease;
}

.gtt-cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.gtt-cookie-banner__inner p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}

.gtt-cookie-banner__inner a {
  color: var(--green-500);
  text-decoration: underline;
}

.gtt-cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

@keyframes gtt-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
  .gtt-cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .gtt-cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}
