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

/* Top Bar Styles */
.top-bar {
    background-color: #1a237e;
    color: white;
    font-size: 0.85rem;
}

.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(135deg, #1976D2 0%, #0D47A1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #CDDC39);
}

.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 img {
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-logo img:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.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;
}