/* ================================================= */
/*               ORTAK BODY & ARKAPLAN               */
/* ================================================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* ------------------- Mobil Portrait (9:16) ------------------- */
@media (max-width: 600px) and (orientation: portrait) {
  body {
    background-image: url("img/bg-mobile-portrait.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
  }
}

/* ------------------- Mobil Landscape (16:9) ------------------- */
@media (max-width: 900px) and (orientation: landscape) {
  body {
    background-image: url("img/bg-mobile-landscape.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
  }
}

/* ------------------- Tablet Portrait (3:4) ------------------- */
@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
  body {
    background-image: url("img/bg-tablet-portrait.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
  }
}

/* ------------------- Tablet Landscape (4:3) ------------------- */
@media (min-width: 900px) and (max-width: 1400px) and (orientation: landscape) {
  body {
    background-image: url("img/bg-tablet-landscape.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
  }
}

/* ------------------- Desktop Full HD / QHD (16:9) ------------------- */
@media (min-width: 1401px) {
  body {
    background-image: url("img/bg-desktop.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
  }
}


/* ================================================= */
/*       POPUP (Genel Stil) ve OVERLAY Tanımı        */
/* ================================================= */
.popup {
  display: none; /* JS ile gösterilecek */
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, -50%); /* Varsayılan: hem X hem Y ortala */
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  text-align: center;
  z-index: 1000;
  border: 1px solid #ffc302;
  -webkit-animation: bounce 3s infinite ease-in-out;
    -o-animation: bounce 3s infinite ease-in-out;
    -ms-animation: bounce 3s infinite ease-in-out; 
    -moz-animation: bounce 3s infinite ease-in-out; 
    animation: bounce 3s infinite ease-in-out;
}
.popup h2 {
  margin-top: 0;
  color: #2196F3;
  font-size: 1.25rem;
}
.popup p {
  margin: 0.75rem 0 0.5rem;
  font-size: 1rem;
  color: #333;
}
.popup img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* Overlay (arka planı koyulaştırmak için) */
.overlay {
  display: none; /* JS ile açılacak */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
}


@-webkit-keyframes bounce {
    0% { transform: translateY(-5px)  }
    50% { transform: translateY(10px) }
    100% { transform: translateY(-5px) }
}

@keyframes bounce {
    0% { transform: translateY(-5px)  }
    50% { transform: translateY(10px) }
    100% { transform: translateY(-5px) }
}

/* ================================================= */
/*         CHROME POPUP (Masaüstü & Mobil)           */
/* ================================================= */

/* 1) Masaüstü Chrome (Genişlik ≥ 769px) */
@media (min-width: 769px) {
  #chrome-popup {
    /* Ortak bottom, left ortala vs. iptal ediliyor */
    bottom: auto;
    left: 65%;
    top: 45px;
    /* right: 10px; */
    transform: translate(0, 0); /* Y ekseni kaydırmasını iptal et */
  }
  /* Masaüstü Chrome için ok (üçgen): yukarı bakan */
  #chrome-popup::after,
  #chrome-popup::before {
    bottom: 100%;
    left: 20%;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }
  /* İç beyaz üçgen (küçük) */
  #chrome-popup::after {
    border-color: rgba(255, 255, 255, 0);
	border-bottom-color: #ffffff;
	border-width: 30px;
	margin-left: -30px;
  }
  /* Dış sarı çerçeve üçgen (büyük) */
  #chrome-popup::before {
    border-color: rgba(255, 195, 2, 0);
	border-bottom-color: #ffc302;
	border-width: 34px;
	margin-left: -34px;
  }
}

/* 2) Mobil Chrome (Genişlik ≤ 768px) */
@media (max-width: 768px) {
  #chrome-popup {
    bottom: auto;
    left: auto;
    top: 50px;    /* Mobil adres çubuğu altı: test ederek 45-60px arası ince ayar yapın */
    right: 10px;
    transform: translate(0, 0); /* Y eksenindeki -50% kaydırmasını iptal et */
  }
  /* Mobil Chrome için ok (üçgen): yukarı bakan */
  #chrome-popup::after,
  #chrome-popup::before {
    bottom: 100%;
    left: 85%;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }
  /* İç beyaz üçgen */
  #chrome-popup::after {
    border-color: rgba(255, 255, 255, 0);
	border-bottom-color: #f3f3f3;
	border-width: 30px;
	margin-left: -30px;
  }
  /* Dış sarı üçgen */
  #chrome-popup::before {
    border-color: rgba(255, 195, 2, 0);
	border-bottom-color: #ffc302;
	border-width: 34px;
	margin-left: -34px;
  }
}

/* ================================================= */
/*           SAFARI POPUP (Mobil & Masaüstü)         */
/* ================================================= */

/* 1) Mobil Safari (Genişlik ≤ 768px) */
@media (max-width: 768px) {
  #safari-popup {
    bottom: 60px;            /* Alt paylaş butonunun üstüne oturacak */
    left: 0%;
    transform: translateX(-50%); /* Y ekseni kaydırmayı iptal, yalnızca X ortala */
  }
  /* Mobil Safari: popup’un altındaki ok (triangle) */
  #safari-popup::after,
  #safari-popup::before {
    top: 100%;
	left: 50%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
  }
  /* İç beyaz üçgen */
  #safari-popup::after {
    border-color: rgba(255, 255, 255, 0);
	border-top-color: #f3f3f3;
	border-width: 30px;
	margin-left: -30px;
  }
  /* Dış sarı çerçeve üçgen */
  #safari-popup::before {
    border-color: rgba(255, 195, 2, 0);
	border-top-color: #ffc302;
	border-width: 34px;
	margin-left: -34px;
  }
}

/* 2) Masaüstü Safari (Genişlik ≥ 769px) */
@media (min-width: 769px) {
  #safari-popup {
    bottom: auto;
    left: 50%;
    top: 10px;             /* Üst ortada hizala */
    transform: translateX(-50%);
  }
  /* Masaüstü Safari’de ok’u gösterme (isteğe bağlı) */
  #safari-popup::after,
  #safari-popup::before {
    display: none;
  }
}