/* Styles of resources/views/frontend/brand/index.blade.php (moved out of the template so browsers cache them). */
/* Global overflow fix */
html, body {
    overflow-x: hidden;
}

/* =========
   Furniture Store Design Tokens
   ========= */
:root {
    --primary-color: #3d3934;
    --primary-dark: #5a0b00;
    --secondary-color: #8B4513;
    --accent-gold: #c9a050;
    --warm-cream: #f5f1e8;
    --soft-beige: #faf8f3;
    --wood-brown: #8b6f47;
    --bronze: #cd7f32;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --warm-gray: #d9d5cc;
    --dark-text: #2c2416;
    --text: #4a4239;
    --muted: #847969;
    --accent: var(--primary-color);
    --card-bg: var(--white);
    --soft: var(--soft-beige);
    --border: var(--warm-gray);
    --shadow: 0 8px 32px rgba(114, 14, 0, .08);
    --shadow-md: 0 12px 40px rgba(114, 14, 0, .12);
    --shadow-lg: 0 16px 48px rgba(114, 14, 0, .18);
    --radius: 12px;
    --accent-red: #8c0f1b;
}

.brands-hero-wrap {
    padding: 2.4rem 0 0.9rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fffdfa 0%, #f8f3ea 100%);
}

/* =========
   PAGE HERO SECTION
   ========= */
.page-hero {
    position: relative;
    padding: 3rem 0 2.25rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(201, 160, 80, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(61, 57, 52, 0.08), transparent 30%),
        linear-gradient(180deg, #fff 0%, #faf7f1 100%);
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::before {
    top: -130px;
    right: -130px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(201, 160, 80, 0.10) 0%, transparent 72%);
}

.page-hero::after {
    bottom: -110px;
    left: -110px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(61, 57, 52, 0.05) 0%, transparent 72%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.page-hero-copy {
    padding: 0;
}

.page-hero-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--dark-text);
}

.page-hero-description {
    max-width: 760px;
    margin: 1rem auto 0;
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text);
    text-align: center;
    padding: 0 1rem;
}

.page-hero-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.page-hero-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(61, 57, 52, 0.12);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(61, 57, 52, 0.06);
}

@media (max-width: 576px) {
    .brands-hero-wrap {
        padding: 2rem 0 0.75rem;
    }

    .page-hero {
        padding: 2rem 0 1.5rem;
    }

    .page-hero-title {
        font-size: 1.9rem !important;
    }

    .page-hero-description {
        font-size: 1rem !important;
    }

    .page-hero-meta {
        gap: .5rem;
    }

    .page-hero-meta span {
        width: 100%;
    }
}

/* Brands Grid */
.brands-grid {
    padding: 1rem 0 4rem;
}

.brands-grid .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Brand Card */
.brand-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
    text-decoration: none;
    position: relative;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    text-decoration: none;
}

.brand-card:active {
    transform: translateY(-2px);
}

/* Brand Media Container */
.brand-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 1.5rem;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.brand-media img {
    max-width: 85%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover .brand-media img {
    filter: none;
    transform: scale(1.05);
}

/* Brand Name */
.brand-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.875rem 1rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f8f8f8;
    border-top: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-name {
    color: var(--primary-color);
    background: var(--color-surface-soft);
}

/* Empty State */
.text-center.text-muted {
    padding: 3rem 2rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--muted);
}

.text-center.text-muted a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-center.text-muted a:hover {
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-hero {
        padding: 2.5rem 0 2rem;
    }

    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-description {
        font-size: 1.05rem;
    }

    .brands-grid {
        padding: 1.5rem 0 3rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 2rem 0 1.75rem;
    }

    .page-hero::before,
    .page-hero::after {
        display: none;
    }

    .page-hero-badge {
        padding: 0.5rem 1.25rem;
    }

    .page-hero-badge i {
        font-size: 0.9rem;
    }

    .page-hero-badge span {
        font-size: 0.85rem;
    }

    .page-hero-title {
        font-size: 1.75rem;
    }

    .page-hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .brand-card {
        border-radius: 10px;
    }

    .brand-media {
        padding: 1rem;
    }

    .brand-name {
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
    }

    .brands-grid .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}
