/* ==========================================================================
   GOOGLE ADSENSE COMPLIANCE & PUBLISHER POLICY STYLES
   ========================================================================== */

/* Outer Ad Containers */
.ad-container-outer {
  width: 100%;
  max-width: var(--max-width);
  margin: 1.25rem auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
}

.ad-slot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0.75rem 0;
  width: 100%;
}

/* Strictly compliant label: 'ADVERTISEMENT' */
.ad-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--fd-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  align-self: center;
}

.ad-placeholder-box {
  background: #0b0e14;
  border: 1px dashed var(--fd-border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fd-text-muted);
  width: 100%;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.ad-placeholder-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}

.ad-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.75rem;
  z-index: 1;
}

.ad-provider-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #4285F4; /* Google Blue */
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-dimension-spec {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fd-text-secondary);
}

.ad-subtext {
  font-size: 0.675rem;
  color: var(--fd-text-muted);
}

/* Specific Ad Formats */
.ad-leaderboard .ad-placeholder-box {
  height: 90px;
  max-width: 728px;
}

@media (max-width: 768px) {
  .ad-leaderboard .ad-placeholder-box {
    height: 100px;
    max-width: 320px;
  }
}

.ad-sidebar .ad-placeholder-box {
  height: 250px;
  max-width: 300px;
}

@media (min-width: 960px) {
  .ad-sticky-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + var(--sub-bar-height, 44px) + 1.25rem);
    z-index: 10;
  }
}

.ad-sidebar-halfpage .ad-placeholder-box {
  height: 600px;
  max-width: 300px;
}

.ad-in-article {
  margin: 2rem 0;
}

.ad-in-article .ad-placeholder-box {
  height: 120px;
  max-width: 100%;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (GDPR / ePrivacy Directive Compliant)
   ========================================================================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 18, 26, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--fd-border-light);
  padding: 1.25rem 1.5rem;
  z-index: 4000;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-consent-inner {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.825rem;
  color: var(--fd-text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--theme-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--theme-accent);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cookie-accept:hover {
  filter: brightness(1.15);
}

.btn-cookie-settings {
  background: transparent;
  color: var(--fd-text-secondary);
  border: 1px solid var(--fd-border-light);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-cookie-settings:hover {
  background: var(--fd-bg-card);
  color: #ffffff;
}

/* ==========================================================================
   ARTICLE IMAGERY & MEDIA GALLERIES (WITH CAPTIONS & ATTRIBUTION)
   ========================================================================== */

.article-hero-image-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--fd-border);
  background: var(--fd-bg-card);
}

.article-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.article-figure {
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--fd-border);
  background: var(--fd-bg-card);
}

.article-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.figure-caption {
  padding: 0.6rem 1rem;
  font-size: 0.775rem;
  color: var(--fd-text-muted);
  background: var(--fd-bg-surface);
  border-top: 1px solid var(--fd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.figure-credit {
  font-size: 0.7rem;
  color: var(--fd-text-muted);
}

/* ==========================================================================
   AUTHOR BIO BOX (E-E-A-T AdSense Requirement)
   ========================================================================== */

.author-bio-card {
  background: var(--fd-bg-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0 1.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--theme-accent);
  object-fit: cover;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.author-verified-badge {
  font-size: 0.7rem;
  background: rgba(0, 240, 144, 0.15);
  color: #00f090;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.author-role {
  font-size: 0.775rem;
  color: var(--theme-accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.author-bio-text {
  font-size: 0.825rem;
  color: var(--fd-text-secondary);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .article-hero-img {
    height: 240px;
  }
}
