/* ========================================
   BRAND PUBLIC PAGES STYLES
   Liquid Glass iOS 26 Design
   ======================================== */

/* Brand Page Container - Gradient Background for Glass Effect */
.brand-page-container {
    background: linear-gradient(
        180deg,
        #f0f2f5 0%,
        #e8eaed 50%,
        #f5f7fa 100%
    );
    min-height: 60vh;
    padding-bottom: 2rem;
    margin-top: -1rem;
    padding-top: 1rem;
}

/* Brand Page Header */
.brand-page-header {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.brand-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.brand-page-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Brand Listing Grid */
.brand-listing-section {
    padding: 1rem 0 3rem;
}

/* Liquid Glass Card - iOS 26 Style */
.brand-listing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    height: 100%;
    position: relative;

    /* Liquid Glass Effect */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Rounded corners - iOS style */
    border-radius: 24px;

    /* Subtle gradient border */
    border: 1px solid rgba(255, 255, 255, 0.7);

    /* Soft shadow for depth */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);

    /* Smooth transitions */
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        background 0.3s ease;

    overflow: hidden;
}

/* Light refraction overlay */
.brand-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Shimmer effect on hover */
.brand-listing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.brand-listing-card:hover::after {
    transform: translateX(100%) rotate(45deg);
}

.brand-listing-card:hover {
    transform: translateY(-6px) scale(1.02);
    text-decoration: none;

    /* Enhanced glass effect on hover */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.brand-listing-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Liquid Glass Logo Wrapper */
.brand-logo-wrapper {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;

    /* Inner glass container */
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(240, 242, 245, 0.85) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Squircle-like rounded corners */
    border-radius: 22px;

    /* Subtle inset effect */
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.06);

    /* Border gradient simulation */
    border: 1px solid rgba(255, 255, 255, 0.8);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Inner glow on wrapper */
.brand-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        transparent 50%
    );
    border-radius: 20px;
    pointer-events: none;
}

.brand-listing-card:hover .brand-logo-wrapper {
    transform: scale(1.05);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-logo-img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: grayscale(10%);
    transition:
        filter 0.3s ease,
        transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.brand-listing-card:hover .brand-logo-img {
    filter: grayscale(0%) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transform: scale(1.05);
}

/* Liquid Glass Placeholder */
.brand-logo-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;

    /* Gradient glass effect */
    background: linear-gradient(
        135deg,
        rgba(200, 210, 220, 0.8) 0%,
        rgba(180, 190, 200, 0.6) 50%,
        rgba(200, 210, 220, 0.7) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-radius: 50%;

    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.4);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.brand-logo-placeholder::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 10%;
    right: 10%;
    height: 30%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.6) 0%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
}

.brand-listing-card:hover .brand-logo-placeholder {
    transform: scale(1.08);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.7),
        inset 0 -2px 6px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.12);
}

.brand-logo-placeholder span {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(60, 70, 80, 0.9);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* Brand Name with subtle glass text effect */
.brand-listing-card .brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(30, 40, 50, 0.9);
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.brand-listing-card:hover .brand-name {
    color: #0066CC;
    transform: translateY(-1px);
}

/* Brand Detail Page */
.brand-detail-header {
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.brand-detail-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.brand-detail-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.25rem 0;
}

.brand-detail-count {
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Responsive: Tablet */
@media (max-width: 991px) {
    .brand-page-title {
        font-size: 1.5rem;
    }

    .brand-listing-card {
        padding: 1.25rem 0.75rem;
        border-radius: 20px;
    }

    .brand-listing-card::before {
        border-radius: 20px 20px 0 0;
    }

    .brand-logo-wrapper {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .brand-logo-wrapper::before {
        border-radius: 16px;
    }

    .brand-logo-placeholder {
        width: 56px;
        height: 56px;
    }

    .brand-detail-header {
        padding: 1.25rem 1.5rem;
    }

    .brand-detail-logo {
        width: 70px;
        height: 70px;
    }

    .brand-detail-title {
        font-size: 1.35rem;
    }
}

/* Responsive: Mobile */
@media (max-width: 767px) {
    .brand-page-header {
        padding: 1rem 0 0.5rem;
    }

    .brand-page-title {
        font-size: 1.25rem;
    }

    .brand-page-subtitle {
        font-size: 0.875rem;
    }

    .brand-listing-section {
        padding: 0.75rem 0 2rem;
    }

    .brand-listing-card {
        padding: 1rem 0.5rem;
        border-radius: 18px;
    }

    .brand-listing-card::before {
        border-radius: 18px 18px 0 0;
    }

    .brand-listing-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .brand-logo-wrapper {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 0.75rem;
    }

    .brand-logo-wrapper::before {
        border-radius: 14px;
    }

    .brand-listing-card .brand-name {
        font-size: 0.8rem;
    }

    .brand-logo-placeholder {
        width: 48px;
        height: 48px;
    }

    .brand-logo-placeholder span {
        font-size: 1rem;
    }

    .brand-detail-header {
        padding: 1rem;
    }

    .brand-detail-logo {
        width: 60px;
        height: 60px;
        padding: 0.5rem;
    }

    .brand-detail-title {
        font-size: 1.15rem;
    }

    .brand-detail-count {
        font-size: 0.8rem;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 575px) {
    .brand-listing-card {
        padding: 0.875rem 0.5rem;
        border-radius: 16px;
    }

    .brand-listing-card::before {
        border-radius: 16px 16px 0 0;
    }

    .brand-logo-wrapper {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin-bottom: 0.5rem;
    }

    .brand-logo-wrapper::before {
        border-radius: 12px;
    }

    .brand-listing-card .brand-name {
        font-size: 0.75rem;
    }

    .brand-logo-placeholder {
        width: 42px;
        height: 42px;
    }

    .brand-logo-placeholder span {
        font-size: 0.9rem;
    }

    /* Reduce animation intensity on small screens */
    .brand-listing-card:hover {
        transform: translateY(-3px);
    }

    .brand-listing-card:hover .brand-logo-wrapper {
        transform: scale(1.03);
    }
}
