/**
 * İçerik Koruma CSS
 * Giriş yapmamış kullanıcılar için görsel koruma
 */

/* Temel koruma sınıfları */
.content-protected {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Sağ tık koruması */
.no-context-menu {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Drag & drop koruması */
.no-drag {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  draggable: false;
}

.guest-protection-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 200px;
  animation: fadeInScale 0.3s ease-out;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.protection-icon {
  font-size: 1rem;
  color: #3498db;
  margin-bottom: 4px;
  display: none; /* Hide icon for minimal design */
}

.protection-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0;
  display: none; /* Hide title for minimal design */
}

.protection-message {
  color: #555;
  margin-bottom: 0;
  line-height: 1.4;
  font-size: 0.75rem;
  display: none; /* Hide message, only show button */
}

.protection-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.protection-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.7rem;
}

.protection-btn-primary {
  background: #3498db;
  color: white;
}

.protection-btn-primary:hover {
  background: #2980b9;
  color: white;
  transform: translateY(-2px);
}

.protection-btn-secondary {
  background: #ecf0f1;
  color: #2c3e50;
}

.protection-btn-secondary:hover {
  background: #d5dbdb;
  color: #2c3e50;
  transform: translateY(-2px);
}

/* Subtle watermark overlay - minimal visibility */
.content-watermark {
  position: absolute;
  bottom: 10px;
  right: 10px;
  transform: none;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Hide watermark on hover for better UX */
.content-watermark:hover {
  opacity: 0.3;
}

/* Minimal blur effect only for slider when dev tools detected */
.slider-protection-blur {
  filter: blur(2px) !important;
  -webkit-filter: blur(2px) !important;
  transition: filter 0.3s ease;
  opacity: 0.8;
}

.slider-protection-blur::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
}

/* Mobile specific protections */
@media (max-width: 768px) {
  .content-protected {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }

  .guest-protection-content {
    margin: 20px;
    padding: 25px;
  }

  .protection-actions {
    flex-direction: column;
  }

  .protection-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print protection */
@media print {
  .content-protected,
  .guest-protection-overlay {
    display: none !important;
  }
}

/* Developer tools protection warning */
.dev-tools-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #e74c3c;
  color: white;
  padding: 10px;
  text-align: center;
  z-index: 9999;
  font-weight: bold;
  display: none;
}

.dev-tools-warning.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Disable text selection on protected areas */
.protected-area {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Hide images from screen readers when protected */
.content-protected[aria-hidden="true"] {
  speak: never;
  -webkit-speak: never;
}

/* Keyboard navigation protection */
.content-protected:focus {
  outline: none;
}

/* Selection protection */
::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}

.content-protected::selection {
  background: transparent;
}

.content-protected::-moz-selection {
  background: transparent;
}
