/* Instructions Modal - Styles now in set-default.css */
/* This file is kept for backward compatibility but the modal styles */
/* are now defined in set-default.css to avoid conflicts */

.instructions-content {
  background: white;
  border: 4px solid var(--border);
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: 12px 12px 0 var(--border);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.instructions-content h3 {
  font-family: 'Cairo', 'Tajawal', 'Orbitron', sans-serif;
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--secondary);
  text-align: center;
  border-bottom: 4px solid var(--primary);
  padding-bottom: 10px;
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
  line-height: 1.4;
}

.browser-instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.browser {
  background: var(--bg);
  border: 3px solid var(--border);
  padding: 20px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.browser h4 {
  font-family: 'Cairo', 'Tajawal', 'Orbitron', sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
  text-transform: uppercase;
}

.browser ol {
  margin-right: 20px;
  padding-right: 0;
}

.browser li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.close-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 40px;
  font-family: 'Cairo', 'Tajawal', 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: var(--primary);
  color: white;
  border: 3px solid var(--border);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.15s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.close-btn:hover {
  background: var(--success);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border);
}

.ethical-note {
  background: var(--accent);
  border: 3px solid var(--border);
  padding: 20px;
  margin-top: 25px;
  margin-bottom: 20px;
  position: relative;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.ethical-note p {
  margin: 10px 0;
  line-height: 1.8;
  font-size: 16px;
}

.ethical-note strong {
  color: var(--primary);
  font-family: 'Cairo', 'Tajawal', 'Orbitron', sans-serif;
  font-size: 18px;
}

/* RTL Specific Adjustments */
body.rtl .browser ol {
  margin-right: 20px;
  margin-left: 0;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .instructions-content {
    padding: 20px;
    width: 95%;
    box-shadow: 6px 6px 0 var(--border);
  }

  .instructions-content h3 {
    font-size: 20px;
  }

  .browser-instructions {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .browser {
    padding: 15px;
  }

  .browser h4 {
    font-size: 16px;
  }

  .browser li {
    font-size: 14px;
  }

  .ethical-note {
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .ethical-note p {
    font-size: 14px;
  }

  .ethical-note strong {
    font-size: 16px;
  }
}