/* In-App Browser Overlay Styles */
#inapp-browser-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a192f 0%, #1e3a5f 50%, #0a192f 100%);
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: 'Nunito', 'Baloo 2', sans-serif;
}

html.in-app-browser #inapp-browser-overlay {
  display: flex;
}

.inapp-overlay-content {
  text-align: center;
  max-width: 400px;
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.inapp-overlay-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 20px;
  filter: drop-shadow(0 4px 20px rgba(0, 196, 204, 0.3));
}

.inapp-overlay-title {
  font-family: 'DynaPuff', 'Fredoka', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.inapp-overlay-title span:first-child {
  color: #10b981;
}

.inapp-overlay-title span:last-child {
  color: #f97316;
}

.inapp-overlay-message {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.inapp-overlay-message strong {
  color: #fff;
}

.inapp-overlay-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.inapp-btn i {
  font-size: 1.3rem;
}

/* Safari Button - iOS sistemlerinde */
.inapp-btn-safari {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
}

.inapp-btn-safari:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Chrome Button - Android ve diğer sistemler */
.inapp-btn-chrome {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
}

.inapp-btn-chrome:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Generic "Open in Browser" */
.inapp-btn-browser {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.inapp-btn-browser:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* İpucu metni */
.inapp-overlay-hint {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.inapp-overlay-hint p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.inapp-overlay-hint strong {
  color: #94a3b8;
}

/* Animasyonlar */
.inapp-btn {
  animation: buttonSlideUp 0.4s ease-out backwards;
}

.inapp-btn:nth-child(1) {
  animation-delay: 0.2s;
}

.inapp-btn:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes buttonSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Küçük ekranlar */
@media (max-width: 380px) {
  .inapp-overlay-title {
    font-size: 1.5rem;
  }
  
  .inapp-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }
}
