/* تعديلات خاصة بشاشات الموبيل */
@media (max-width: 520px) {
  /* تعديلات النموذج المنبثق */
  /* المشكلة: قد يكون النموذج المنبثق لا يسمح بالتفاعل */
  /* الحل: إضافة pointer-events: auto لضمان التفاعل الصحيح */
  .modal-panel {
    max-width: 95%;
    margin: 0 auto;
    width: calc(100% - 20px);
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 10px;
    padding-left: 10px;
    direction: rtl;
    pointer-events: auto;
    position: relative;
    z-index: 1;
  }

  /* تعديلات حقول الإدخال */
  .form-input {
    font-size: 16px;
    transform: translateZ(0);
    touch-action: manipulation;
  }

  input.form-input, textarea.form-input {
    font-size: 16px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  /* تعديلات الأزرار */
  .form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .cta-button {
    padding: 12px 16px;
    font-size: 14px;
    flex: 1;
  }
}

/* أنماط مراحل النشر */
.publish-steps {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 0 15px;
  direction: rtl;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--accent);
  color: white;
}

.step-title {
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.step.active .step-title {
  color: white;
  font-weight: bold;
}

.step-connector {
  flex-grow: 1;
  height: 2px;
  background: #333;
  margin: 18px 10px 0;
  position: relative;
  top: -18px;
}

.step.active ~ .step-connector {
  background: #333;
}

.step.active ~ .step .step-number {
  background: #333;
  color: #aaa;
}

.step.active ~ .step .step-title {
  color: #aaa;
  font-weight: normal;
}

.publish-step-content {
  display: none;
}

.publish-step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.review-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.review-section h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: white;
}

.review-item {
  margin-bottom: 12px;
  display: flex;
}

.review-label {
  width: 100px;
  color: var(--muted);
  font-weight: bold;
}

.review-value {
  flex: 1;
  color: white;
}

.upload-progress {
  margin-top: 10px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* أنماط خاصة بنافذة اختيار نوع المحتوى */
.publish-type-modal {
  background-color: rgba(0, 0, 0, 0.7);
}

.publish-type-panel {
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.publish-type-panel .modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.publish-type-panel .modal-body {
  padding: 16px;
}

.publish-type-panel .option-row {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.publish-type-panel .option-label {
  flex: 1;
  min-width: 80px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.publish-type-panel .option-label:hover {
  background: rgba(29, 161, 242, 0.1);
  border-color: rgba(29, 161, 242, 0.3);
  transform: translateY(-3px);
}

.publish-type-panel .option-label i {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 6px;
}

.publish-type-panel .option-label div {
  font-size: 14px;
  color: #fff;
}

/* تعديلات للموبيل */
@media (max-width: 520px) {
  .publish-type-panel {
    max-width: calc(100% - 40px);
    margin: 0 auto;
  }

  .publish-type-panel .option-label {
    min-width: 70px;
    padding: 10px;
  }

  .publish-type-panel .option-label i {
    font-size: 20px;
  }

  .publish-type-panel .option-label div {
    font-size: 12px;
  }
}
