/* ==========================================================================
   maintenance-style.css - النسخة المشرقة المريحة للعين (Off-White Premium)
   ========================================================================== */

:root {
    --college-blue: #134375;   /* الأزرق الملكي البحري الصريح للشعار */
    --college-gold: #AA8444;   /* الذهبي البرونزي الفاخر لوشاح الشعار */
    --bg-off-white: #F9F8F6;   /* لون الأوف وايت الفاخر والمريح جداً للعين كخلفية */
    --card-shadow: rgba(19, 67, 117, 0.05); /* ظلال ناعمة مقتبسة من هوية الكلية */
    --text-dark: #1E293B;      /* لون النصوص الأساسية الداكنة والمقروءة */
    --text-muted: #64748B;     /* لون النصوص الفرعية */
}

/* 🎨 تهيئة الصفحة بلون الأوف وايت المشرق والمريح */
body {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--bg-off-white) !important;
    background-image:
        radial-gradient(circle at 85% 15%, rgba(170, 132, 68, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 15% 85%, rgba(19, 67, 117, 0.03) 0%, transparent 40%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    color: var(--text-dark);
}

.maintenance-container {
    width: 100%;
    max-width: 650px;
    margin: auto;
    position: relative;
    z-index: 10;
}

/* 🌟 صياغة كرت الصيانة الأبيض الفاخر بظلال ناعمة مريحة 🌟 */
.maintenance-card {
    background: #ffffff !important;
    border: 1px solid #E2E8F0;
    border-top: 5px solid var(--college-blue); /* شريط علوي محكم بالأزرق الملكي */
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(19, 67, 117, 0.05),
                0 4px 12px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box;
}

/* ── 🖼️ حركة الشعار العائمة والانسيابية الفاخرة المحدثة ── */
.logo-floating-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.logo-floating-wrapper img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    padding: 12px;
    background: #ffffff;
    border: 2px solid var(--college-gold); /* برواز ذهبي متناسق */
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(170, 132, 68, 0.15);

    /* حركة صعود وهبوط انسيابية مريحة */
    animation: elegantPremiumFloat 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes elegantPremiumFloat {
    0% { transform: translateY(0px); box-shadow: 0 10px 25px rgba(170, 132, 68, 0.15); }
    50% { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(170, 132, 68, 0.25); }
    100% { transform: translateY(0px); box-shadow: 0 10px 25px rgba(170, 132, 68, 0.15); }
}

/* عناوين ونصوص كارد الصيانة المحدثة بألوان متباينة */
.maintenance-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--college-blue); /* العنوان الرئيسي بالأزرق الملكي للكلية */
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.maintenance-desc {
    font-size: 14.5px;
    color: var(--text-muted); /* نص فرعي هادئ ومقروء */
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 35px auto;
}

/* ── ⏳ شبكة العداد التنازلي في خط مستقيم واحد مريح وأنيق ── */
.countdown-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    max-width: 100% !important;
    margin: 0 auto 40px auto !important;
}

.countdown-item {
    background: #F8FAFC !important; /* خلفية رمادية فاتحة جداً وباردة للعداد */
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px;
    padding: 14px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    max-width: 90px !important;
    min-width: 70px !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.countdown-item:hover {
    border-color: var(--college-gold) !important;
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(170, 132, 68, 0.08) !important;
}

.countdown-number {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--college-blue) !important; /* تحويل الأرقام للأزرق البحري لراحة العين والوضوح */
    line-height: 1 !important;
    margin-bottom: 6px !important;
    font-feature-settings: "tnum" !important;
}

.countdown-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--college-gold) !important; /* تسمية التوقيت بالذهبي البرونزي المتناسق */
}

/* زر التواصل الفاخر بلون الهوية الأزرق */
.btn-contact {
    display: inline-block;
    background: linear-gradient(135deg, var(--college-blue) 0%, #092545 100%) !important; /* زر كحلي ملكي فخم */
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14.5px;
    padding: 14px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(19, 67, 117, 0.2) !important;
    transition: all 0.25s ease-in-out;
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--college-gold) 0%, #8E6D35 100%) !important; /* تدرج ذهبي عند التمرير */
    box-shadow: 0 8px 20px rgba(170, 132, 68, 0.25) !important;
    transform: translateY(-1px);
}

.maintenance-finished {
    grid-column: span 4;
    font-size: 15px;
    font-weight: 700;
    color: #00A651;
    background: rgba(0, 166, 81, 0.06);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #00A651;
}

/* تذييل الحقوق الداكن الهادئ */
.maintenance-footer {
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted) !important;
    border-top: 1px solid #E2E8F0;
    padding-top: 20px;
}
.maintenance-footer span a {
    color: var(--college-blue);
    text-decoration: none;
    font-weight: 600;
}

/* 📱 المرونة الكاملة وأحكام القياسات تلقائياً للهواتف المحمولة */
@media (max-width: 576px) {
    body {
        padding: 15px !important;
    }
    .maintenance-card {
        padding: 40px 20px !important;
        border-radius: 20px !important;
    }
    .maintenance-title {
        font-size: 21px !important;
    }
    .maintenance-desc {
        font-size: 13.5px !important;
        margin-bottom: 25px !important;
    }
    .countdown-grid {
        gap: 6px !important;
    }
    .countdown-item {
        padding: 10px 0 !important;
        max-width: 75px !important;
        min-width: 62px !important;
        border-radius: 10px !important;
    }
    .countdown-number {
        font-size: 22px !important;
        margin-bottom: 4px !important;
    }
    .countdown-label {
        font-size: 11px !important;
    }
    .btn-contact {
        padding: 13px 25px !important;
        font-size: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}
