/* ===================================== */
/* Global Logo Styles - Automatic Sizing */
/* ===================================== */

/* Base Logo Class - Common Properties */
.a1-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    font-family: 'PINAR-FD', sans-serif !important;
}

/* Header Logo - Medium Size */
.a1-logo-header {
    max-width: 180px;
    height: auto;
    max-height: 60px;
    margin: 0;
    padding: 8px 0;
}

/* Footer Logo - Smaller Size */
.a1-logo-footer {
    max-width: 120px;
    height: auto;
    max-height: 40px;
    margin: 0;
    opacity: 0.9;
}

/* Login/Auth Pages Logo - Large Size */
.a1-logo-auth {
    max-width: 250px;
    height: auto;
    max-height: 80px;
    margin: 0 auto 20px auto;
    display: block;
}

/* Dashboard/Profile Logo - Medium Size */
.a1-logo-dashboard {
    max-width: 160px;
    height: auto;
    max-height: 50px;
    margin: 0;
}

/* Content Section Logo - Small Size */
.a1-logo-content {
    max-width: 100px;
    height: auto;
    max-height: 35px;
    margin: 0;
}

/* Modal/Popup Logo - Small Size */
.a1-logo-modal {
    max-width: 80px;
    height: auto;
    max-height: 30px;
    margin: 0 auto;
    display: block;
}

/* Email Template Logo - Medium Size */
.a1-logo-email {
    max-width: 200px;
    height: auto;
    max-height: 65px;
    margin: 0 auto;
    display: block;
}

/* Responsive Adjustments */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .a1-logo-header {
        max-width: 200px;
        max-height: 70px;
    }
    
    .a1-logo-auth {
        max-width: 280px;
        max-height: 90px;
    }
    
    .a1-logo-footer {
        max-width: 140px;
        max-height: 45px;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .a1-logo-header {
        max-width: 170px;
        max-height: 55px;
    }
    
    .a1-logo-auth {
        max-width: 240px;
        max-height: 75px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .a1-logo-header {
        max-width: 150px;
        max-height: 50px;
        margin: 0 auto;
    }
    
    .a1-logo-auth {
        max-width: 220px;
        max-height: 70px;
    }
    
    .a1-logo-footer {
        max-width: 100px;
        max-height: 35px;
        margin: 0 auto;
    }
    
    .a1-logo-dashboard {
        max-width: 140px;
        max-height: 45px;
    }
}

/* Mobile Large (481px to 767px) */
@media (max-width: 767px) {
    .a1-logo-header {
        max-width: 130px;
        max-height: 45px;
    }
    
    .a1-logo-auth {
        max-width: 200px;
        max-height: 65px;
    }
    
    .a1-logo-footer {
        max-width: 90px;
        max-height: 30px;
    }
    
    .a1-logo-dashboard {
        max-width: 120px;
        max-height: 40px;
    }
    
    .a1-logo-content {
        max-width: 80px;
        max-height: 28px;
    }
}

/* Mobile Small (320px to 480px) */
@media (max-width: 480px) {
    .a1-logo-header {
        max-width: 110px;
        max-height: 38px;
    }
    
    .a1-logo-auth {
        max-width: 180px;
        max-height: 58px;
    }
    
    .a1-logo-footer {
        max-width: 80px;
        max-height: 28px;
    }
    
    .a1-logo-dashboard {
        max-width: 100px;
        max-height: 35px;
    }
    
    .a1-logo-content {
        max-width: 70px;
        max-height: 25px;
    }
    
    .a1-logo-modal {
        max-width: 60px;
        max-height: 22px;
    }
}

/* RTL Support for Logo Alignment */
[dir="rtl"] .a1-logo-header,
[dir="rtl"] .a1-logo-dashboard {
    margin-left: 0;
    margin-right: auto;
}

/* Dark Mode Support (if applicable) */
@media (prefers-color-scheme: dark) {
    .a1-logo {
        filter: brightness(0.95);
    }
}

/* Hover Effects for Interactive Logos */
.a1-logo-header:hover,
.a1-logo-dashboard:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Print Styles */
@media print {
    .a1-logo {
        max-width: 150px !important;
        height: auto !important;
    }
}

/* Legacy Browser Support */
.a1-logo {
    -webkit-object-fit: contain;
    -webkit-object-position: center;
    -ms-interpolation-mode: bicubic;
}

/* Accessibility Improvements */
.a1-logo:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Loading State */
.a1-logo[data-loading="true"] {
    opacity: 0.5;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}