/* ملف CSS للرأس - إصلاح انتهاكات CSP */

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    color: white;
    font-size: 0.85rem;
}

/* إخفاء الشريط العلوي على الشاشات الصغيرة */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
}

.top-bar-link {
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-bar-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icon i,
.social-icon .fab,
.social-icon .fa {
    font-size: 1.1rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Brand Colors on Hover */
.social-icon[title*="YouTube"]:hover,
.social-icon:has(.fa-youtube):hover {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    border-color: #FF0000;
}

.social-icon[title*="Instagram"]:hover,
.social-icon:has(.fa-instagram):hover {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
    border-color: #E4405F;
}

.social-icon[title*="Twitter"]:hover,
.social-icon:has(.fa-twitter):hover {
    background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
    border-color: #1DA1F2;
}

.social-icon[title*="Facebook"]:hover,
.social-icon:has(.fa-facebook):hover {
    background: linear-gradient(135deg, #1877F2 0%, #0D5CBE 100%);
    border-color: #1877F2;
}

.language-switch {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.language-switch:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
.site-header {
    background: linear-gradient(180deg, #14B8A6 0%, #0D9488 40%, #0F766E 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #B8934A, #C9A962, #D4B870, #C9A962, #B8934A);
}

.site-title {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.site-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.site-logo {
    position: relative;
    display: inline-block;
}

.site-logo img {
    max-width: 43%;
    width: auto;
    height: auto;
    min-width: 100px;
    max-height: 140px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
    border-radius: 18px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        0 0 0 3px rgba(201, 169, 98, 0.6),
        inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    animation: headerLogoGlow 3s ease-in-out infinite;
}

.site-logo img:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(201, 169, 98, 0.9),
        0 0 25px rgba(201, 169, 98, 0.4);
}

@keyframes headerLogoGlow {

    0%,
    100% {
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.25),
            0 0 0 3px rgba(201, 169, 98, 0.6);
    }

    50% {
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.28),
            0 0 0 4px rgba(201, 169, 98, 0.85),
            0 0 20px rgba(201, 169, 98, 0.25);
    }
}

.partner-logo-item {
    transition: all 0.4s ease;
}

.partner-logo-item:hover {
    transform: translateY(-4px) scale(1.05);
}

/* تنسيق موحد لشعارات المنظمات الشريكة */
.partner-logo-item img {
    width: 55px !important;
    height: 55px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    background-color: white;
}

.partner-logos {
    align-items: center;
}

.partner-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}