/* Enhanced Brand Logo Styles */

/* Fix for brand logo centering and styling */
.brand-card {
    min-height: 200px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.brand-logo-container {
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.brand-logo-container:hover {
    border-color: #dc3545;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.brand-logo-container .brand-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 8px;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Ensure perfect centering */
.brand-card a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Logo loading state improvements */
.brand-logo-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.brand-logo-container .brand-logo.loaded {
    opacity: 1;
}

.brand-logo-container .brand-logo:not(.loaded) {
    opacity: 0;
}

.brand-logo-container.error {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.brand-logo-container.error::after {
    content: '📷';
    position: absolute;
    font-size: 2em;
    color: #6c757d;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-logo-container {
        width: 120px;
        height: 75px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .brand-logo-container {
        width: 100px;
        height: 65px;
        margin-bottom: 15px;
    }
}

/* Print styles */
@media print {
    .brand-logo-container {
        border: 1px solid #333;
        box-shadow: none;
    }
}