/* ==================================================================
   DESKTOP LOGO ENHANCEMENT - IMPROVED VISIBILITY & DESIGN
   Enhanced logo design for desktop with better visibility and modern styling
   Version: 1.0 - Desktop Logo Enhancement
================================================================== */

/* ==================================================================
   1. DESKTOP LOGO ENHANCEMENT (769px and above)
================================================================== */

@media (min-width: 769px) {
    
    /* ==================================================================
       ENHANCED LOGO SECTION - BETTER DESKTOP DESIGN
    ================================================================== */
    
    .logo-section {
        display: flex !important;
        align-items: center !important;
        gap: 1.25rem !important; /* Increased from var(--spacing-md) */
        padding: 0.5rem !important; /* Added padding for better spacing */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95)) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(16, 185, 129, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .logo-section:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
        border-color: rgba(16, 185, 129, 0.2) !important;
    }
    
    /* ==================================================================
       ENHANCED LOGO - LARGER SIZE & BETTER VISIBILITY
    ================================================================== */
    
    .logo {
        width: 64px !important; /* Increased from 48px */
        height: 64px !important; /* Increased from 48px */
        background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
        border-radius: 14px !important; /* Increased from var(--radius-md) */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        border: 2px solid rgba(16, 185, 129, 0.15) !important; /* Enhanced border */
        padding: 0.5rem !important; /* Added padding */
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.1) !important,
            0 0 0 1px rgba(16, 185, 129, 0.05) !important,
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important; /* Enhanced shadow with inset */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
    }
    
    /* Logo hover effects */
    .logo:hover {
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.15) !important,
            0 0 0 1px rgba(16, 185, 129, 0.2) !important,
            inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(16, 185, 129, 0.25) !important;
    }
    
    /* Logo active state */
    .logo:active {
        transform: translateY(0) scale(0.98) !important;
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.1) !important,
            0 0 0 1px rgba(16, 185, 129, 0.15) !important;
    }
    
    /* Logo glow effect */
    .logo::before {
        content: '' !important;
        position: absolute !important;
        top: -2px !important;
        left: -2px !important;
        right: -2px !important;
        bottom: -2px !important;
        background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1)) !important;
        border-radius: 16px !important;
        z-index: -1 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    .logo:hover::before {
        opacity: 1 !important;
    }
    
    /* ==================================================================
       ENHANCED ORGANIZATION INFO - BETTER TYPOGRAPHY
    ================================================================== */
    
    .org-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 0.25rem !important; /* Added gap */
        padding: 0.5rem !important; /* Added padding */
        background: rgba(255, 255, 255, 0.6) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(16, 185, 129, 0.05) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    }
    
    .org-info h1 {
        font-size: 1.5rem !important; /* Increased from var(--font-size-xl) */
        font-weight: 700 !important; /* Increased from 600 */
        color: #1e293b !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
        background: linear-gradient(135deg, #1e293b, #475569) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        letter-spacing: -0.025em !important;
    }
    
    .org-subtitle {
        font-size: 0.95rem !important; /* Increased from var(--font-size-sm) */
        font-weight: 500 !important;
        color: #64748b !important;
        line-height: 1.4 !important;
        opacity: 0.9 !important;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
        letter-spacing: 0.025em !important;
    }
    
    /* ==================================================================
       ENHANCED HEADER ACTIONS - BETTER VISIBILITY
    ================================================================== */
    
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 1.25rem !important; /* Increased from var(--spacing-md) */
        padding: 0.5rem !important; /* Added padding */
        background: rgba(255, 255, 255, 0.8) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(16, 185, 129, 0.05) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    }
    
    /* ==================================================================
       ENHANCED TRUST BADGE - BETTER VISIBILITY
    ================================================================== */
    
    .trust-badge {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important; /* Increased from var(--spacing-sm) */
        padding: 0.75rem 1rem !important; /* Increased from var(--spacing-sm) var(--spacing-md) */
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9)) !important; /* Enhanced background */
        border-radius: 10px !important; /* Increased from var(--radius-md) */
        font-size: 0.9rem !important; /* Increased from var(--font-size-sm) */
        color: #475569 !important; /* Enhanced color */
        border: 1px solid rgba(16, 185, 129, 0.1) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.3s ease !important;
    }
    
    .trust-badge:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        border-color: rgba(16, 185, 129, 0.2) !important;
    }
    
    .trust-badge i {
        color: #10b981 !important;
        font-size: 1.1rem !important; /* Increased size */
    }
}

/* ==================================================================
   2. LARGE DESKTOP OPTIMIZATION (1024px and above)
================================================================== */

@media (min-width: 1024px) {
    
    .logo-section {
        gap: 1.5rem !important; /* Increased from 1.25rem */
        padding: 0.75rem !important; /* Increased from 0.5rem */
    }
    
    .logo {
        width: 72px !important; /* Increased from 64px */
        height: 72px !important; /* Increased from 64px */
        border-radius: 16px !important; /* Increased from 14px */
        padding: 0.625rem !important; /* Increased from 0.5rem */
    }
    
    .logo::before {
        border-radius: 18px !important; /* Adjusted for larger size */
    }
    
    .org-info {
        padding: 0.75rem !important; /* Increased from 0.5rem */
    }
    
    .org-info h1 {
        font-size: 1.625rem !important; /* Increased from 1.5rem */
    }
    
    .org-subtitle {
        font-size: 1rem !important; /* Increased from 0.95rem */
    }
    
    .header-actions {
        gap: 1.5rem !important; /* Increased from 1.25rem */
        padding: 0.75rem !important; /* Increased from 0.5rem */
    }
    
    .trust-badge {
        padding: 0.875rem 1.25rem !important; /* Increased padding */
        font-size: 0.95rem !important; /* Increased from 0.9rem */
    }
    
    .trust-badge i {
        font-size: 1.2rem !important; /* Increased from 1.1rem */
    }
}

/* ==================================================================
   3. EXTRA LARGE DESKTOP OPTIMIZATION (1440px and above)
================================================================== */

@media (min-width: 1440px) {
    
    .logo-section {
        gap: 1.75rem !important; /* Further increased */
        padding: 1rem !important; /* Further increased */
    }
    
    .logo {
        width: 80px !important; /* Further increased */
        height: 80px !important; /* Further increased */
        border-radius: 18px !important; /* Further increased */
        padding: 0.75rem !important; /* Further increased */
    }
    
    .logo::before {
        border-radius: 20px !important; /* Adjusted */
    }
    
    .org-info {
        padding: 1rem !important; /* Further increased */
    }
    
    .org-info h1 {
        font-size: 1.75rem !important; /* Further increased */
    }
    
    .org-subtitle {
        font-size: 1.05rem !important; /* Further increased */
    }
    
    .header-actions {
        gap: 1.75rem !important; /* Further increased */
        padding: 1rem !important; /* Further increased */
    }
    
    .trust-badge {
        padding: 1rem 1.5rem !important; /* Further increased */
        font-size: 1rem !important; /* Further increased */
    }
    
    .trust-badge i {
        font-size: 1.3rem !important; /* Further increased */
    }
}

/* ==================================================================
   4. RTL SUPPORT FOR ENHANCED DESKTOP LOGO
================================================================== */

@media (min-width: 769px) {
    
    html[dir="rtl"] .logo-section {
        direction: rtl !important;
    }
    
    html[dir="rtl"] .org-info {
        direction: rtl !important;
        align-items: flex-end !important; /* Align to the right in RTL */
    }
    
    html[dir="rtl"] .header-actions {
        direction: rtl !important;
    }
}

/* ==================================================================
   5. ACCESSIBILITY ENHANCEMENTS FOR DESKTOP
================================================================== */

@media (min-width: 769px) {
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .logo {
            border-width: 3px !important;
            border-color: #000000 !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        }
        
        .org-info h1 {
            -webkit-text-fill-color: #000000 !important;
            background: none !important;
        }
        
        .org-subtitle {
            color: #000000 !important;
        }
        
        .trust-badge {
            border-width: 2px !important;
            border-color: #000000 !important;
            background: #ffffff !important;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .logo {
            transition: none !important;
        }
        
        .logo:hover {
            transform: none !important;
        }
        
        .logo::before {
            transition: none !important;
        }
        
        .logo-section {
            transition: none !important;
        }
        
        .logo-section:hover {
            transform: none !important;
        }
        
        .trust-badge {
            transition: none !important;
        }
        
        .trust-badge:hover {
            transform: none !important;
        }
    }
    
    /* Focus indicators for accessibility */
    .logo:focus {
        outline: 3px solid #10b981 !important;
        outline-offset: 2px !important;
    }
    
    .logo-section:focus-within {
        outline: 2px solid #10b981 !important;
        outline-offset: 1px !important;
        border-radius: 18px !important;
    }
    
    .trust-badge:focus {
        outline: 2px solid #10b981 !important;
        outline-offset: 1px !important;
    }
}

/* ==================================================================
   6. PRINT STYLES FOR DESKTOP LOGO
================================================================== */

@media print {
    .logo-section {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .logo {
        border: 2px solid #000000 !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }
    
    .org-info h1 {
        -webkit-text-fill-color: #000000 !important;
        background: none !important;
        color: #000000 !important;
    }
    
    .org-subtitle {
        color: #000000 !important;
    }
    
    .header-actions {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .trust-badge {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        color: #000000 !important;
    }
} 