/**
 * Enhanced Logo Styles
 * تنسيق اللوجو النصي المحسن مع الأيقونة
 * @package Lahzat_News
 * @version 1.0
 */

/* =========================================
   تنسيق اللوجو الأساسي
   ========================================= */

.site-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* اللوجو الصورة */
.logo-link {
    display: block;
    line-height: 0;
}

/* أبعاد اللوجو يتم التحكم بها من functions.php */

/* اللوجو النصي */
.text-logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.text-logo-link:hover {
    transform: translateY(-2px);
}

/* =========================================
   حاوية اللوجو النصي
   ========================================= */

.text-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 168, 89, 0.1);
    transition: all 0.3s ease;
}

.text-logo-link:hover .text-logo-wrapper {
    background: linear-gradient(135deg, #00A859 0%, #00c46e 100%);
    box-shadow: 0 8px 25px rgba(0, 168, 89, 0.25);
    border-color: rgba(0, 168, 89, 0.3);
}

/* =========================================
   أيقونة الشعار
   ========================================= */

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00A859, #00c46e);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 168, 89, 0.3);
    transition: all 0.3s ease;
}

.text-logo-link:hover .logo-icon {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.4);
    transform: rotate(360deg);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.text-logo-link:hover .logo-icon svg {
    color: #00A859;
}

/* شارة "خبر" */
.icon-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    border: 2px solid #ffffff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.6);
    }
}

/* =========================================
   نص اللوجو
   ========================================= */

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* اسم الموقع */
.site-name {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00A859, #00c46e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.text-logo-link:hover .site-name {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* شعار الموقع */
.site-tagline {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.text-logo-link:hover .site-tagline {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   نمط بديل - تصميم عصري
   ========================================= */

.logo-style-modern .text-logo-wrapper {
    background: linear-gradient(135deg, #00A859 0%, #00c46e 100%);
    border: none;
}

.logo-style-modern .logo-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.logo-style-modern .logo-icon svg {
    color: #ffffff;
}

.logo-style-modern .site-name {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-style-modern .site-tagline {
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   نمط بديل - تصميم كلاسيكي
   ========================================= */

.logo-style-classic .text-logo-wrapper {
    background: #ffffff;
    border: 3px solid #00A859;
    border-radius: 10px;
}

.logo-style-classic .logo-icon {
    border-radius: 10px;
}

.logo-style-classic .icon-badge {
    border-radius: 5px;
}

/* =========================================
   نمط بديل - تصميم بسيط
   ========================================= */

.logo-style-minimal .text-logo-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 5px 10px;
}

.logo-style-minimal .logo-icon {
    box-shadow: none;
    background: transparent;
}

.logo-style-minimal .logo-icon svg {
    color: #00A859;
}

.logo-style-minimal .icon-badge {
    display: none;
}

/* =========================================
   الاستجابة للموبايل
   ========================================= */

@media (max-width: 768px) {
    .site-logo {
        gap: 10px;
    }
    
    /* إخفاء اللوجو الصورة على الموبايل إذا كان هناك لوجو نصي */
    .site-logo .logo-link {
        display: none;
    }
    
    .text-logo-wrapper {
        padding: 8px 15px;
        gap: 10px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .icon-badge {
        font-size: 8px;
        padding: 2px 6px;
        bottom: -3px;
        right: -3px;
    }
    
    .site-name {
        font-size: 18px;
    }
    
    .site-tagline {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .text-logo-wrapper {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .site-name {
        font-size: 16px;
    }
    
    .site-tagline {
        display: none;
    }
}

/* =========================================
   تأثيرات إضافية
   ========================================= */

/* تأثير الوميض للشارة */
@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.icon-badge {
    animation: pulse 2s ease-in-out infinite, flash 3s ease-in-out infinite;
}

/* تأثير التوهج */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 168, 89, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 168, 89, 0.5);
    }
}

.logo-icon {
    animation: glow 3s ease-in-out infinite;
}

/* تأثير الانزلاق عند التحميل */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-logo-wrapper {
    animation: slideInRight 0.6s ease-out;
}

/* =========================================
   الوضع الليلي (Dark Mode)
   ========================================= */

.dark-mode-enabled .text-logo-wrapper {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(0, 168, 89, 0.3);
}

.dark-mode-enabled .text-logo-link:hover .text-logo-wrapper {
    background: linear-gradient(135deg, #00A859 0%, #00c46e 100%);
}

.dark-mode-enabled .site-name {
    background: linear-gradient(135deg, #00c46e, #00A859);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode-enabled .site-tagline {
    color: #999;
}

/* =========================================
   إعدادات الطباعة
   ========================================= */

@media print {
    .logo-icon {
        animation: none;
    }
    
    .icon-badge {
        animation: none;
    }
    
    .text-logo-wrapper {
        background: #ffffff;
        border: 1px solid #000000;
        box-shadow: none;
    }
}

/* =========================================
   تحسينات إمكانية الوصول
   ========================================= */

.text-logo-link:focus {
    outline: 3px solid #00A859;
    outline-offset: 5px;
    border-radius: 50px;
}

.text-logo-link:focus .text-logo-wrapper {
    box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.2);
}

/* =========================================
   تحسينات الأداء
   ========================================= */

.logo-icon,
.text-logo-wrapper,
.site-name {
    will-change: transform;
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
    .logo-icon,
    .text-logo-wrapper,
    .site-name,
    .icon-badge {
        animation: none !important;
        transition: none !important;
    }
}

