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

/* ==================================================================
   1. MOBILE LOGO ENHANCEMENT (768px and below)
================================================================== */

@media (max-width: 768px) {
    
    /* ==================================================================
       ENHANCED LOGO SECTION - BETTER VISIBILITY & DESIGN
    ================================================================== */
    
    .logo-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important; /* Increased from 0.75rem */
        width: 100% !important;
        order: 1 !important;
        padding: 0.5rem !important; /* Added padding for better spacing */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)) !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.08) !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* ==================================================================
       ENHANCED LOGO - LARGER SIZE & BETTER VISIBILITY
    ================================================================== */
    
    .logo {
        width: 100px !important; /* Increased from 80px */
        height: 100px !important; /* Increased from 80px */
        border-radius: 20px !important; /* Increased from 14px */
        object-fit: contain !important;
        background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
        border: 3px solid rgba(16, 185, 129, 0.2) !important; /* Enhanced border */
        padding: 0.75rem !important; /* Increased padding */
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.15) !important,
            0 0 0 1px rgba(16, 185, 129, 0.1) !important,
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important; /* Enhanced shadow with inset */
        margin: 0 auto !important;
        display: block !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Logo hover effects */
    .logo:hover {
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.2) !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.3) !important;
    }
    
    /* Logo active state */
    .logo:active {
        transform: translateY(0) scale(0.98) !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.15) !important,
            0 0 0 1px rgba(16, 185, 129, 0.2) !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: 22px !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: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0.5rem !important; /* Added padding */
        order: 2 !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(16, 185, 129, 0.1) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    .org-info h1,
    .org-name {
        font-size: 1.5rem !important; /* Increased from 1.4rem */
        font-weight: 800 !important; /* Increased from 700 */
        color: #1e293b !important;
        margin: 0 0 0.5rem 0 !important; /* Increased margin */
        line-height: 1.2 !important;
        text-align: center !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.1) !important;
        letter-spacing: -0.025em !important;
    }
    
    .org-subtitle {
        font-size: 1rem !important; /* Increased from 0.95rem */
        font-weight: 600 !important; /* Increased from 500 */
        color: #64748b !important;
        margin: 0 !important;
        line-height: 1.4 !important;
        text-align: center !important;
        opacity: 0.9 !important; /* Increased from 0.8 */
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
        letter-spacing: 0.025em !important;
    }
    
    /* ==================================================================
       ENHANCED CAMPAIGN TITLE - BETTER VISIBILITY
    ================================================================== */
    
    .campaign-title {
        font-size: 1.2rem !important; /* Increased from 1.1rem */
        font-weight: 700 !important; /* Increased from 600 */
        color: #059669 !important;
        margin: 0.75rem 0 0 0 !important; /* Increased margin */
        line-height: 1.3 !important;
        text-align: center !important;
        order: 3 !important;
        text-shadow: 0 1px 2px rgba(5, 150, 105, 0.1) !important;
        letter-spacing: -0.01em !important;
    }
}

/* ==================================================================
   2. SMALL MOBILE OPTIMIZATION (480px and below)
================================================================== */

@media (max-width: 480px) {
    
    .logo-section {
        gap: 0.75rem !important; /* Reduced from 1rem */
        padding: 0.375rem !important; /* Reduced from 0.5rem */
        border-radius: 12px !important; /* Reduced from 16px */
    }
    
    .logo {
        width: 85px !important; /* Reduced from 100px */
        height: 85px !important; /* Reduced from 100px */
        border-radius: 16px !important; /* Reduced from 20px */
        padding: 0.625rem !important; /* Reduced from 0.75rem */
        border-width: 2px !important; /* Reduced from 3px */
    }
    
    .logo::before {
        border-radius: 18px !important; /* Adjusted for smaller size */
    }
    
    .org-info {
        padding: 0.375rem !important; /* Reduced from 0.5rem */
        border-radius: 8px !important; /* Reduced from 12px */
    }
    
    .org-info h1,
    .org-name {
        font-size: 1.3rem !important; /* Reduced from 1.5rem */
        margin-bottom: 0.375rem !important; /* Reduced from 0.5rem */
    }
    
    .org-subtitle {
        font-size: 0.9rem !important; /* Reduced from 1rem */
    }
    
    .campaign-title {
        font-size: 1.1rem !important; /* Reduced from 1.2rem */
        margin-top: 0.5rem !important; /* Reduced from 0.75rem */
    }
}

/* ==================================================================
   3. EXTRA SMALL MOBILE OPTIMIZATION (360px and below)
================================================================== */

@media (max-width: 360px) {
    
    .logo {
        width: 75px !important; /* Further reduced */
        height: 75px !important; /* Further reduced */
        border-radius: 14px !important; /* Further reduced */
        padding: 0.5rem !important; /* Further reduced */
    }
    
    .logo::before {
        border-radius: 16px !important; /* Adjusted */
    }
    
    .org-info h1,
    .org-name {
        font-size: 1.2rem !important; /* Further reduced */
    }
    
    .org-subtitle {
        font-size: 0.85rem !important; /* Further reduced */
    }
    
    .campaign-title {
        font-size: 1rem !important; /* Further reduced */
    }
}

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

@media (max-width: 768px) {
    
    html[dir="rtl"] .logo-section {
        direction: rtl !important;
    }
    
    html[dir="rtl"] .org-info {
        direction: rtl !important;
    }
    
    html[dir="rtl"] .org-info h1,
    html[dir="rtl"] .org-name {
        text-align: center !important; /* Keep centered even in RTL */
    }
    
    html[dir="rtl"] .org-subtitle {
        text-align: center !important; /* Keep centered even in RTL */
    }
}

/* ==================================================================
   5. ACCESSIBILITY ENHANCEMENTS
================================================================== */

@media (max-width: 768px) {
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .logo {
            border-width: 4px !important;
            border-color: #000000 !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        }
        
        .org-info h1,
        .org-name {
            -webkit-text-fill-color: #000000 !important;
            background: none !important;
        }
        
        .org-subtitle {
            color: #000000 !important;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .logo {
            transition: none !important;
        }
        
        .logo:hover {
            transform: none !important;
        }
        
        .logo::before {
            transition: 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;
    }
} 