/* 
 * ملف الأنماط لصفحة حذف الحساب - تطبيق موهوب
 * Account Deletion Page Styles - Mwhoub App
 */

/* إعدادات عامة - General Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Cairo', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  direction: rtl;
}

/* متغيرات الألوان - Color Variables */
:root {
  --primary-color: #6C5CE7;
  --secondary-color: #EC4899;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
}

/* الحاوي الرئيسي - Main Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* رأس الصفحة - Header */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 20px);
  animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
  0% {
    transform: translateX(-50px);
  }

  100% {
    transform: translateX(50px);
  }
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.header p {
  font-size: 1.2em;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* المحتوى - Content */
.content {
  padding: 40px 30px;
}

.section {
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section h2 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.section:hover h2::after {
  width: 100px;
}

.section h3 {
  color: var(--gray-700);
  font-size: 1.3em;
  margin: 20px 0 10px 0;
}

.section p,
.section li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.section ul {
  margin-right: 20px;
}

.section li {
  position: relative;
  padding-right: 20px;
}

.section li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* التمييز - Highlights */
.highlight {
  background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
  padding: 20px;
  border-radius: 10px;
  border-right: 4px solid var(--primary-color);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.highlight:hover::before {
  transform: translateX(100%);
}

/* نموذج الحذف - Deletion Form */
.deletion-form {
  background: var(--gray-50);
  padding: 30px;
  border-radius: 15px;
  border: 2px solid var(--primary-color);
  margin: 30px 0;
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.1);
  transition: all 0.3s ease;
}

.deletion-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.15);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--gray-700);
  transition: color 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
  transform: translateY(-2px);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group select:focus+label {
  color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* زر الإرسال - Submit Button */
.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* معلومات الاتصال - Contact Info */
.contact-info {
  background: #e8f4fd;
  padding: 25px;
  border-radius: 10px;
  border-right: 4px solid #00B4D8;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.contact-info:hover {
  background: #d6ecfa;
  transform: translateX(-5px);
}

.contact-info h4 {
  color: #0077B6;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.contact-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.contact-info p::before {
  content: '📞';
  margin-left: 8px;
}

.contact-info p:nth-child(3)::before {
  content: '📧';
}

.contact-info p:nth-child(4)::before {
  content: '🕒';
}

.contact-info p:nth-child(5)::before {
  content: '⚡';
}

/* التحذيرات - Warnings */
.warning {
  background: #fff5f5;
  border: 2px solid #fc8181;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    border-color: #fc8181;
  }

  50% {
    border-color: #f56565;
  }
}

.warning h4 {
  color: #e53e3e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.warning h4::before {
  content: '⚠️';
  margin-left: 8px;
}

/* الخطوات - Steps */
.steps {
  counter-reset: step-counter;
}

.step {
  counter-increment: step-counter;
  background: var(--gray-50);
  border-right: 4px solid #4299e1;
  padding: 20px;
  margin: 15px 0;
  border-radius: 0 10px 10px 0;
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  background: white;
  transform: translateX(-10px);
  box-shadow: 0 5px 15px rgba(66, 153, 225, 0.2);
}

.step::before {
  content: counter(step-counter);
  position: absolute;
  right: -15px;
  top: 15px;
  background: #4299e1;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

/* التذييل - Footer */
.footer {
  background: var(--gray-800);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

.footer p {
  margin-bottom: 5px;
  opacity: 0.8;
}

/* التصميم المتجاوب - Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    margin: 0;
    border-radius: 15px;
  }

  .header {
    padding: 30px 20px;
  }

  .header h1 {
    font-size: 2em;
  }

  .content {
    padding: 30px 20px;
  }

  .deletion-form {
    padding: 20px;
  }

  .section h2 {
    font-size: 1.5em;
  }

  .step {
    padding: 15px;
    margin: 10px 0;
  }

  .step::before {
    right: -12px;
    top: 12px;
    width: 24px;
    height: 24px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8em;
  }

  .header p {
    font-size: 1em;
  }

  .section h2 {
    font-size: 1.3em;
  }

  .deletion-form {
    padding: 15px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* تحسينات الأداء - Performance Optimizations */
.lazy-load {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.lazy-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* طباعة - Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .container {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .header {
    background: white;
    color: black;
    border-bottom: 2px solid #ccc;
  }

  .deletion-form,
  .submit-btn {
    display: none;
  }

  .warning {
    border: 2px solid #000;
    background: #f5f5f5;
  }
}

/* إضافات مخصصة - Custom Additions */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
}

.status-indicator.pending {
  background: var(--warning-color);
  animation: blink 1.5s infinite;
}

.status-indicator.completed {
  background: var(--success-color);
}

.status-indicator.error {
  background: var(--error-color);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.3;
  }
}

/* تحسينات إضافية للتفاعل */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* نهاية ملف الأنماط */