/**
 * Navigation & Link Protection System - Protection System CSS
 * التصميم العام لنظام الحماية
 */

/* ===== GLOBAL STYLES ===== */
.nav-prot-system {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

[dir="ltr"] .nav-prot-system {
  direction: ltr;
  text-align: left;
}

/* ===== UTILITY CLASSES ===== */
.nav-prot-hidden {
  display: none !important;
}

.nav-prot-visible {
  display: block !important;
}

.nav-prot-fade-in {
  animation: nav-prot-fade-in 0.3s ease;
}

.nav-prot-fade-out {
  animation: nav-prot-fade-out 0.3s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes nav-prot-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes nav-prot-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes nav-prot-slide-down {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes nav-prot-slide-up {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

@keyframes nav-prot-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== LOADING SPINNER ===== */
.nav-prot-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(46, 172, 206, 0.3);
  border-radius: 50%;
  border-top-color: #2eacce;
  animation: nav-prot-spin 0.8s linear infinite;
}

@keyframes nav-prot-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== BUTTONS ===== */
.nav-prot-button {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.nav-prot-button-primary {
  background-color: #2eacce;
  color: #ffffff;
}

.nav-prot-button-primary:hover {
  background-color: #2598b8;
}

.nav-prot-button-secondary {
  background-color: #f5f5f5;
  color: #666;
}

.nav-prot-button-secondary:hover {
  background-color: #e0e0e0;
}

.nav-prot-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== CARDS ===== */
.nav-prot-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.nav-prot-card-header {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.nav-prot-card-body {
  color: #666;
  line-height: 1.6;
}

/* ===== BADGES ===== */
.nav-prot-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.nav-prot-badge-success {
  background-color: #4caf50;
  color: #ffffff;
}

.nav-prot-badge-warning {
  background-color: #ff9800;
  color: #ffffff;
}

.nav-prot-badge-danger {
  background-color: #f44336;
  color: #ffffff;
}

.nav-prot-badge-info {
  background-color: #2196f3;
  color: #ffffff;
}

/* ===== TOOLTIPS ===== */
.nav-prot-tooltip {
  position: relative;
  display: inline-block;
}

.nav-prot-tooltip .nav-prot-tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1000000;
  bottom: 125%;
  right: 50%;
  margin-right: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

.nav-prot-tooltip:hover .nav-prot-tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ===== PROGRESS BAR ===== */
.nav-prot-progress {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.nav-prot-progress-bar {
  height: 100%;
  background-color: #2eacce;
  transition: width 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-prot-card {
    padding: 15px;
  }
  
  .nav-prot-button {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav-prot-warning-message,
  .nav-prot-modal {
    display: none !important;
  }
}

/* ===== ACCESSIBILITY ===== */
.nav-prot-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== FOCUS STYLES ===== */
.nav-prot-focus-visible:focus-visible {
  outline: 2px solid #2eacce;
  outline-offset: 2px;
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
.nav-prot-system ::selection {
  background-color: #2eacce;
  color: #ffffff;
}

.nav-prot-system ::-moz-selection {
  background-color: #2eacce;
  color: #ffffff;
}
