/* Werkbrug Netherlands - Logo Styling CSS */

/* Main Logo Styles */
.site-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Company Logo Base Styles */
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--werkbrug-orange);
    transition: all 0.3s ease;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Large Company Logo (for profile pages) */
.company-logo-large {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.company-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Medium Company Logo */
.company-logo-medium {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--werkbrug-orange);
}

.company-logo-medium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Small Company Logo (for lists) */
.company-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--werkbrug-orange);
}

.company-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Logo Placeholder (when no image available) */
.logo-placeholder {
    background: linear-gradient(135deg, var(--werkbrug-orange) 0%, var(--werkbrug-blue) 100%);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Brand-specific logo backgrounds (fallback) */
.company-logo.microsoft { background: linear-gradient(135deg, #0078d4, #005a9b); }
.company-logo.ing { background: linear-gradient(135deg, #ff6200, #e55100); }
.company-logo.unilever { background: linear-gradient(135deg, #0f4c75, #3282b8); }
.company-logo.philips { background: linear-gradient(135deg, #0076be, #004481); }
.company-logo.postnl { background: linear-gradient(135deg, #ff6200, #e55100); }
.company-logo.tech { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.company-logo.finance { background: linear-gradient(135deg, #6f42c1, #9f7aea); }
.company-logo.healthcare { background: linear-gradient(135deg, #dc3545, #f8d7da); }
.company-logo.logistics { background: linear-gradient(135deg, #fd7e14, #ffab76); }
.company-logo.education { background: linear-gradient(135deg, #28a745, #68d391); }

/* Navbar Logo */
.navbar-brand .site-logo {
    height: 35px;
    margin-right: 10px;
}

/* Logo Hover Effects */
.company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.company-logo-large:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Logo Loading State */
.logo-loading {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.logo-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: logoShimmer 1.5s infinite;
}

@keyframes logoShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Logo Error State */
.logo-error {
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Logo Sizing */
@media (max-width: 768px) {
    .company-logo-large {
        width: 80px;
        height: 80px;
        border-radius: 15px;
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    .navbar-brand .site-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .company-logo-large {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
    
    .company-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .navbar-brand .site-logo {
        height: 25px;
    }
}

/* Print Styles */
@media print {
    .company-logo,
    .company-logo-large,
    .site-logo {
        background: #fff !important;
        border: 1px solid #ddd !important;
        color: #333 !important;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .company-logo img,
    .company-logo-large img,
    .site-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Logo Container Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-with-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-with-text .company-name {
    font-weight: 600;
    color: var(--werkbrug-dark);
}

/* Special logo styles for different sections */
.hero-section .company-logo-large {
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.company-card .company-logo {
    border: 2px solid rgba(255, 108, 0, 0.1);
    transition: all 0.3s ease;
}

.company-card:hover .company-logo {
    border-color: var(--werkbrug-orange);
    transform: scale(1.1);
}

/* Logo aspect ratio containers */
.logo-aspect-1-1 {
    aspect-ratio: 1/1;
}

.logo-aspect-16-9 {
    aspect-ratio: 16/9;
}

.logo-aspect-4-3 {
    aspect-ratio: 4/3;
} 