/* ============================================
   BRAND DETAIL PAGE
   ============================================ */

/* Hero Section */
.brand-hero-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.brand-hero-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.brand-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.brand-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.brand-logo,
.brand-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #f9fafb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.brand-logo {
    object-fit: cover;
}

.brand-logo-placeholder {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
}

.featured-star {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: #fbbf24;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.brand-info {
    flex: 1;
    min-width: 0;
}

.brand-info-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    text-align: left;
}

.brand-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.brand-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
    text-align: left;
}

/* Hero Stats */
.brand-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.hero-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.hero-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.stat-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 600;
}

/* Content Section */
.brand-content-section {
    padding: 2.5rem 0;
    background: #fafbfc;
}

.brand-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.brand-main-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brand-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Content Card - Matching Complaint Detail Style */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #a5b4fc;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.card-title i {
    color: #6366f1;
    font-size: 1.125rem;
}

.view-all-btn {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

.card-body {
    padding: 0;
}

/* Metrics List */
.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-name i {
    color: #6366f1;
    font-size: 0.875rem;
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 100px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.3s ease;
}

/* Complaint Item */
.complaint-item {
    display: block;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.complaint-item:not(:last-child) {
    margin-bottom: 1.25rem;
}

.complaint-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.complaint-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.complaint-item-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-resolved {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #ca8a04;
}

.complaint-item-excerpt {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.complaint-item-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 500;
}

.meta-item i {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Empty State */
.empty-complaints {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e1;
}

.empty-text {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Sidebar Card - Matching Complaint Detail Style */
.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-card-header {
    padding: 1rem 1.5rem;
    background: #6366f1;
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card-body {
    padding: 1.5rem;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: #f3f4f6;
}

.contact-item.contact-address {
    align-items: flex-start;
    cursor: default;
}

.contact-item.contact-address:hover {
    background: #f9fafb;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}

.contact-arrow {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Social Media */
.social-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-facebook {
    background: #1877f2;
}

.social-twitter {
    background: #1da1f2;
}

.social-instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-youtube {
    background: #ff0000;
}

.social-linkedin {
    background: #0077b5;
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.cta-button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* CTA Card */
.cta-card-body {
    text-align: center;
}

.cta-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #6366f1;
}

.cta-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.cta-card-text {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

/* Modern Pagination */
.modern-pagination {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0 0 0;
    border-top: 1px solid #f1f5f9;
}

.pagination-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.pagination-showing,
.pagination-total {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-info strong {
    color: #1f2937;
    font-weight: 700;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn,
.pagination-page {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
}

.pagination-btn:not(.disabled):hover,
.pagination-page:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
}

.pagination-page.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .brand-content-grid {
        grid-template-columns: 1fr;
    }

    .brand-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brand-info-left {
        align-items: center;
    }

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

    .brand-description {
        text-align: center;
    }

    .brand-hero-stats {
        grid-template-columns: 1fr;
    }

    .pagination-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat-card {
        padding: 1.25rem;
    }

    .stat-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .card-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .complaint-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-hero-section {
        padding: 2rem 0;
    }

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

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

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

    .card-title {
        font-size: 1.125rem;
    }

    .complaint-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .complaint-item-meta {
        gap: 1rem;
    }
}
