/* ========================================================
   Footer CSS - Professional Enhanced Version
   ======================================================== */

/* --- ROOT VARIABLES (موحّد مع باقي المشروع) --- */
:root {
    --footer-bg: #A07755;
    --primary-green: #006745;
    --danger-red: #A5122D;
    --white: #FFFFFF;

    --shadow: 0 6px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* --- GLOBAL FOOTER --- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    width: 100%;
    margin-top: auto;
    padding-top: 50px;
    position: relative;
    overflow: hidden;
}

/* تحسين الخلفية (طبقة ناعمة احترافية) */
.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05);
    pointer-events: none;
}

/* --- FOOTER CONTAINER --- */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-direction: row-reverse;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* --- FOOTER COLUMN --- */
.footer-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- TITLES --- */
.footer-title {
    font-weight: 900;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 15px;
    color: var(--white);
}

/* ========================================================
   SOCIAL ICONS
   ======================================================== */

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icons i {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--white);
    color: var(--footer-bg);

    font-size: 1.2rem;

    cursor: pointer;
    transition: var(--transition);

    box-shadow: var(--shadow);
}

.social-icons i:hover {
    transform: translateY(-3px) scale(1.08);
}

/* ========================================================
   LOGO
   ======================================================== */

.logo-container {
    width: 90px;
    height: 90px;

    border-radius: 50%;
    overflow: hidden;

    border: 4px solid var(--white);
    background: var(--white);

    box-shadow: var(--shadow);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================
   HEART ICON (desktop only)
   ======================================================== */

.footer-heart {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

/* animation خفيفة */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========================================================
   SPONSOR BOX
   ======================================================== */

.sponsor-frame {
    width: 160px;
    height: 85px;

    background: var(--white);
    border: 2px solid var(--white);

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    color: var(--footer-bg);

    overflow: hidden;
    box-shadow: var(--shadow);
}

.sponsor-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================
   COPYRIGHT BAR
   ======================================================== */

.footer-copyright {
    background-color: var(--white);
    color: var(--footer-bg);

    text-align: center;

    padding: 15px 10px;

    font-weight: 800;
    font-size: 0.9rem;

    border-top: 2px solid var(--footer-bg);

    position: relative;
    z-index: 2;
}

/* ========================================================
   ALERT BOX (Toast / Notification)
   ======================================================== */

.alert-box {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);

    background: var(--danger-red);
    color: var(--white);

    padding: 18px 35px;
    border-radius: 50px;

    font-size: 1.2rem;
    font-weight: 900;

    white-space: nowrap;

    box-shadow: var(--shadow);

    transition: top 0.4s ease;

    z-index: 9999;
}

/* عند التفعيل */
.alert-box.show {
    top: 20px;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */

/* TABLET */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-heart {
        display: none;
    }

    .sponsor-frame {
        width: 140px;
        height: 80px;
    }
}

/* MOBILE SMALL */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 12px 30px;
    }

    .social-icons i {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .logo-container {
        width: 75px;
        height: 75px;
    }

    .sponsor-frame {
        width: 120px;
        height: 70px;
    }

    .footer-title {
        font-size: 0.95rem;
    }
}

/* ========================================================
   ACCESSIBILITY
   ======================================================== */

.social-icons i:focus,
.sponsor-frame:focus {
    outline: 2px solid var(--danger-red);
    outline-offset: 3px;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}