/**
 * Logistics Companies Widget Styles - Modern Design
 */

.fuelguard-logistics-companies {
    width: 100%;
    padding: 40px 0;
}

.logistics-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

/* Filter Buttons */
.logistics-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.logistics-filter-btn {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.logistics-filter-btn:hover {
    background: #f9fafb;
    border-color: #bb0a07;
    color: #bb0a07;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 10, 7, 0.15);
}

.logistics-filter-btn.active {
    background: linear-gradient(135deg, #bb0a07 0%, #d10b08 100%);
    border-color: #bb0a07;
    color: #fff;
    box-shadow: 0 4px 12px rgba(187, 10, 7, 0.25);
}

.logistics-filter-btn.active:hover {
    background: linear-gradient(135deg, #a00906 0%, #bb0a07 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(187, 10, 7, 0.3);
}

/* Grid Layout */
.logistics-companies-grid {
    display: grid;
    gap: 24px;
    padding: 0 15px;
}

/* Company Cell - Modern Card Design */
.logistics-company-cell {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 
                0 8px 10px -6px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1.8 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logistics-company-cell:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35), 
                0 18px 36px -18px rgba(0, 0, 0, 0.25);
}

.logistics-company-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, transparent 0%, rgba(187, 10, 7, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logistics-company-cell:hover::before {
    opacity: 1;
}

.logistics-company-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logistics-company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logistics-company-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(0%) contrast(1.05) brightness(1.02);
    transition: all 0.3s ease;
}

.logistics-company-cell:hover .logistics-company-logo img {
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .logistics-companies-grid {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 22px;
    }
}

@media (max-width: 1200px) {
    .logistics-companies-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 20px;
    }
    
    .logistics-section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
}

@media (max-width: 992px) {
    .logistics-companies-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 18px;
    }
    
    .logistics-filter-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .fuelguard-logistics-companies {
        padding: 30px 0;
    }
    
    .logistics-companies-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px;
    }
    
    .logistics-company-cell {
        border-radius: 12px;
        box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.25), 
                    0 6px 8px -6px rgba(0, 0, 0, 0.18);
    }
    
    .logistics-company-cell:hover {
        box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.3), 
                    0 14px 28px -14px rgba(0, 0, 0, 0.22);
    }
    
    .logistics-section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .logistics-filter-buttons {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .logistics-filter-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .logistics-companies-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px;
        padding: 0 10px;
    }
    
    .logistics-company-cell {
        border-radius: 10px;
    }
    
    .logistics-filter-buttons {
        gap: 6px;
    }
    
    .logistics-filter-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .logistics-companies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

/* Print Styles */
@media print {
    .logistics-company-cell {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .logistics-filter-buttons {
        display: none;
    }
}

/* Loading Animation - Simple Fade In */
@keyframes simpleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logistics-company-cell {
    animation: simpleFadeIn 0.4s ease-out backwards;
}

.logistics-company-cell:nth-child(1) { animation-delay: 0s; }
.logistics-company-cell:nth-child(2) { animation-delay: 0.03s; }
.logistics-company-cell:nth-child(3) { animation-delay: 0.06s; }
.logistics-company-cell:nth-child(4) { animation-delay: 0.09s; }
.logistics-company-cell:nth-child(5) { animation-delay: 0.12s; }
.logistics-company-cell:nth-child(6) { animation-delay: 0.15s; }
.logistics-company-cell:nth-child(7) { animation-delay: 0.18s; }
.logistics-company-cell:nth-child(8) { animation-delay: 0.21s; }
.logistics-company-cell:nth-child(9) { animation-delay: 0.24s; }
.logistics-company-cell:nth-child(10) { animation-delay: 0.27s; }
.logistics-company-cell:nth-child(n+11) { animation-delay: 0.3s; }

