/* BrandList Module Styles */

.brandlist-container {
    padding: 4rem 16rem;
}

@media (max-width: 1400px) {
    .brandlist-container {
        padding: 3rem 8rem;
    }
}

@media (max-width: 1200px) {
    .brandlist-container {
        padding: 3rem 4rem;
    }
}

@media (max-width: 992px) {
    .brandlist-container {
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .brandlist-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .brandlist-container {
        padding: 1.5rem 0.75rem;
    }
}

.brandlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 120px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brand-item>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.brand-logo {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.brand-item:hover .brand-logo {
    transform: scale(1.05);
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.brand-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .brandlist-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .brandlist-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .brand-item {
        min-height: 100px;
        padding: 1rem 0.75rem;
    }

    .brand-logo {
        max-height: 192px;
    }
}

@media (max-width: 768px) {
    .brandlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .brand-item {
        min-height: 90px;
        padding: 0.75rem 0.5rem;
    }

    .brand-logo {
        max-height: 168px;
    }

    .brand-name {
        font-size: 0.85rem;
    }

    .brand-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .brandlist-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.75rem;
    }

    .brand-item {
        min-height: 80px;
        padding: 0.5rem;
    }

    .brand-logo {
        max-height: 144px;
    }

    .brand-name {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .brand-description {
        font-size: 0.7rem;
    }
}

/* Loading Animation */
.brand-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.brandlist-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.brandlist-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.brandlist-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #888;
}

.brandlist-empty p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .brand-item {
        background: #2d2d2d;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .brand-item:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    .brand-name {
        color: #fff;
    }

    .brand-description {
        color: #ccc;
    }
}