/* ===================================================
   styles.css | التنسيقات الأساسية الإضافية (للمودال والسبينر)
   =================================================== */

/* Zoom / Modal Backdrop & Content - موحد الآن */
.zoom-overlay {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.95); 
    justify-content: center;
    align-items: center;
}

.zoom-content {
    position: relative;
    padding: 20px;
    max-width: 95%;
    max-height: 95vh;
    text-align: center;
}

.zoom-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 90vh; 
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    /* منع الحفظ والحماية */
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.zoom-close {
    position: absolute;
    top: 15px;
    right: 15px; 
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-close:hover,
.zoom-close:focus {
    color: #bbb;
}

/* السبينر للـ Form */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4f46e5; /* لون Indigo */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* النجمة الحمراء للحقول المطلوبة */
.required-label::after {
    content: ' *';
    color: #f87171; /* أحمر خفيف يتناسب مع الثيم الداكن */
    font-weight: bold;
    margin-right: 3px;
}

/* التنسيقات العامة للصور في المعارض + العلامة المائية الشفافة */
.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.watermark-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4vw; /* حجم يتناسب مع الشاشة */
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15); /* لون أبيض شفاف جداً */
    pointer-events: none;
    z-index: 10;
    text-align: center;
    line-height: 1.2;
    padding: 0 20px;
}
/* إطار متوهج لصورة البروفايل في صفحة الرئيسية */
.profile-avatar {
  position: relative;
  z-index: 1;
  object-position: center 20%; /* تحريك الوجه لأسفل داخل الدائرة */
}

/* حاوية افتراضية للإضاءة حول الصورة (باستخدام shadow فقط حتى لا نكسر tailwind) */
.profile-avatar {
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.7),
    0 0 30px rgba(129, 140, 248, 0.6),
    0 15px 25px rgba(15, 23, 42, 0.8);
  border-color: #6366f1; /* Indigo أقوى قليلاً */
}
