/* Diziizle.fun - Global Theme & Ad Layout */
:root {
  --dz-bg: #0a0b0f;
  --dz-bg-soft: #11141b;
  --dz-card: #141820;
  --dz-border: rgba(255, 255, 255, 0.06);
  --dz-primary: #c8a26a;
  --dz-secondary: #8fa1c2;
  --dz-text: #f2f5f9;
  --dz-muted: #9aa3b2;
  --dz-glow: 0 0 24px rgba(200, 162, 106, 0.22);
  --dz-radius: 18px;
}

* {
  box-sizing: border-box;
}

body.diziizlefun {
  font-family: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background-color: var(--dz-bg) !important;
  color: var(--dz-text) !important;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(200, 162, 106, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(143, 161, 194, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(90, 104, 134, 0.08) 0%, transparent 45%);
}

body.diziizlefun h1,
body.diziizlefun h2,
body.diziizlefun h3,
body.diziizlefun .brand-title {
  font-family: "Syne", "Sora", sans-serif;
  letter-spacing: -0.02em;
}

body.diziizlefun .text-neon,
body.diziizlefun .accent-text,
body.diziizlefun .logo span {
  color: var(--dz-primary) !important;
  text-shadow: 0 0 12px rgba(200, 162, 106, 0.28) !important;
}

body.diziizlefun [class*=\"text-[#00f2ff]\"] {
  color: var(--dz-primary) !important;
}

body.diziizlefun [class*=\"border-[#00f2ff]\"] {
  border-color: var(--dz-primary) !important;
}

body.diziizlefun [class*=\"bg-[#00f2ff]\"] {
  background-color: var(--dz-primary) !important;
  color: #1b1308 !important;
}

body.diziizlefun a {
  color: inherit;
  text-decoration: none;
}

.site-alert {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(120deg, rgba(200, 162, 106, 0.18), rgba(143, 161, 194, 0.16));
  border-bottom: 1px solid var(--dz-border);
  position: relative;
  z-index: 2001;
}

.site-alert-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
}

.site-alert-badge {
  background: var(--dz-card);
  border: 1px solid var(--dz-border);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--dz-primary);
  box-shadow: var(--dz-glow);
}

.ad-section {
  width: min(1200px, 92%);
  margin: 18px auto 28px auto;
  padding: 18px;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

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

.ad-row-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.ad-unit {
  width: 100%;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(12, 16, 22, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.ad-banner {
  width: 100%;
  max-width: 760px;
  padding: 10px;
}

.ad-unit iframe {
  max-width: 100%;
}

.ad-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dz-muted);
}

.ad-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ad-link {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--dz-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dz-text);
  font-weight: 600;
  transition: transform 0.2s ease, border 0.2s ease;
}

.ad-link:hover {
  border-color: var(--dz-primary);
  transform: translateY(-2px);
}

.ad-section-mid {
  margin-top: 26px;
}

.ad-mobile { display: block; }
.ad-desktop { display: none; }

@media (min-width: 768px) {
  .ad-mobile { display: none; }
  .ad-desktop { display: block; }
}

/* Modal */
.ad-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 12, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.ad-modal.is-active {
  display: flex;
}

.ad-modal-card {
  width: min(360px, 92%);
  background: #0f141c;
  border: 1px solid var(--dz-border);
  border-radius: 20px;
  padding: 18px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.ad-fallback-btn {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--dz-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dz-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* Eski reklam katmanlarını gizle */
#global-overlay,
#ad-modal-overlay {
  display: none !important;
}

/* Simple header/footer helpers */
.site-header {
  width: min(1200px, 92%);
  margin: 24px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--dz-radius);
  background: rgba(14, 18, 26, 0.82);
  border: 1px solid var(--dz-border);
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dz-text);
}

.brand-title span {
  color: var(--dz-primary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--dz-muted);
}

.site-footer {
  width: min(1200px, 92%);
  margin: 40px auto 30px auto;
  padding: 18px;
  border-radius: var(--dz-radius);
  border: 1px solid var(--dz-border);
  background: rgba(11, 15, 21, 0.6);
  color: var(--dz-muted);
  text-align: center;
}

/* Iframe crop style (tr-az uyumlu) */
.dz-iframe-crop,
.player-frame,
.precise-embed-container {
  width: 100%;
  height: 550px;
  position: relative;
  overflow: hidden;
  border: none;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
  background: #000;
}

.dz-iframe-crop iframe,
.player-frame iframe,
.precise-embed-container iframe {
  width: 100%;
  height: 800px;
  position: absolute;
  top: -145px;
  left: 0;
  border: none;
}

@media (max-width: 600px) {
  .dz-iframe-crop,
  .player-frame,
  .precise-embed-container {
    height: 500px;
  }
  .dz-iframe-crop iframe,
  .player-frame iframe,
  .precise-embed-container iframe {
    height: 500px;
    top: -100px;
  }
}
