/* page-header base styles are in base.css */

.breadcrumb-nav {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
}

.breadcrumb-nav a:hover {
    color: var(--fluent-white);
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
}

.filter-panel {
    background: var(--fluent-white);
    border-radius: var(--fluent-radius-lg);
    box-shadow: var(--fluent-shadow-4);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.filter-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fluent-neutral-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fluent-neutral-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-panel-title i {
    color: var(--fluent-primary);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-of-type {
    margin-bottom: 24px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fluent-neutral-secondary);
    margin-bottom: 8px;
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--fluent-white);
    border-radius: var(--fluent-radius-lg);
    box-shadow: var(--fluent-shadow-4);
}

.results-count {
    font-size: 14px;
    color: var(--fluent-neutral-secondary);
}

.results-count strong {
    color: var(--fluent-neutral-dark);
    font-weight: 600;
}

.view-toggle .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.view-toggle .btn.active {
    background-color: var(--fluent-primary);
    border-color: var(--fluent-primary);
    color: white;
}

.cpa-card {
    background: var(--fluent-white);
    border-radius: var(--fluent-radius-lg);
    box-shadow: var(--fluent-shadow-4);
    margin-bottom: 16px;
    transition: all 0.2s ease;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.cpa-card:hover {
    box-shadow: var(--fluent-shadow-16);
    border-left-color: var(--fluent-primary);
    transform: translateY(-2px);
}

.cpa-card-body {
    padding: 24px;
}

.cpa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cpa-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fluent-primary-light) 0%, var(--fluent-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fluent-white);
    font-size: 20px;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.cpa-info {
    flex: 1;
}

.cpa-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--fluent-neutral-dark);
    margin: 0 0 4px 0;
    text-decoration: none;
    display: block;
}

.cpa-name:hover {
    color: var(--fluent-primary);
}

.cpa-credential {
    font-size: 13px;
    color: var(--fluent-neutral-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cpa-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cpa-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cpa-badge-verified {
    background-color: rgba(16, 124, 16, 0.1);
    color: var(--fluent-success);
}

.cpa-badge-licensed {
    background-color: rgba(0, 120, 212, 0.1);
    color: var(--fluent-primary);
}

.cpa-badge-consultation {
    background-color: rgba(255, 185, 0, 0.15);
    color: #986f0b;
}

.cpa-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--fluent-neutral-light);
    border-bottom: 1px solid var(--fluent-neutral-light);
    margin-bottom: 16px;
}

.cpa-meta-item {
    display: flex;
    flex-direction: column;
}

.cpa-meta-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fluent-neutral-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cpa-meta-value {
    font-size: 14px;
    color: var(--fluent-neutral-primary);
    font-weight: 500;
}

.cpa-meta-value i {
    color: var(--fluent-primary);
    margin-right: 6px;
    width: 14px;
}

.cpa-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cpa-actions .btn {
    font-size: 13px;
    padding: 8px 16px;
}

.btn-view-profile {
    background: var(--fluent-primary);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-view-profile:hover {
    background: var(--fluent-primary-dark);
    color: white;
}

.btn-website {
    background: transparent;
    color: var(--fluent-neutral-secondary);
    border: 1px solid var(--fluent-neutral-light);
}

.btn-website:hover {
    background: var(--fluent-neutral-lighter);
    color: var(--fluent-neutral-dark);
    border-color: var(--fluent-neutral-tertiary);
}

.cpa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .cpa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cpa-grid {
        grid-template-columns: 1fr;
    }
}

.cpa-card-grid {
    background: var(--fluent-white);
    border-radius: var(--fluent-radius-lg);
    box-shadow: var(--fluent-shadow-4);
    transition: all 0.2s ease;
    overflow: hidden;
}

.cpa-card-grid:hover {
    box-shadow: var(--fluent-shadow-16);
    transform: translateY(-4px);
}

.cpa-card-grid-header {
    background: linear-gradient(135deg, var(--fluent-primary) 0%, var(--fluent-primary-dark) 100%);
    padding: 20px;
    text-align: center;
}

.cpa-card-grid .cpa-avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.cpa-card-grid .cpa-name {
    color: var(--fluent-white);
    margin-bottom: 4px;
}

.cpa-card-grid .cpa-name:hover {
    color: rgba(255, 255, 255, 0.9);
}

.cpa-card-grid .cpa-credential {
    color: rgba(255, 255, 255, 0.8);
    justify-content: center;
}

.cpa-card-grid-body {
    padding: 20px;
}

.cpa-card-grid .cpa-badges {
    justify-content: center;
    margin-bottom: 16px;
}

.cpa-card-grid .cpa-meta {
    grid-template-columns: 1fr 1fr;
    border-top: none;
    padding-top: 0;
}

.cpa-card-grid .cpa-actions {
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--fluent-white);
    border-radius: var(--fluent-radius-lg);
    box-shadow: var(--fluent-shadow-4);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--fluent-neutral-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--fluent-neutral-tertiary);
    font-size: 32px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--fluent-neutral-secondary);
    margin-bottom: 0;
}

.pagination-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* =====================================================
   MOBILE FILTER PANEL STYLES
   ===================================================== */

.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-filter-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-filter-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    z-index: 1051;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    visibility: hidden;
}

.mobile-filter-panel.show {
    right: 0;
    visibility: visible;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--fluent-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-filter-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-filter-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filter-body {
    padding: 20px;
}

.mobile-filter-body .filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fluent-neutral-dark);
    margin-bottom: 10px;
}

.mobile-filter-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
}

.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--fluent-white);
    border: 1px solid var(--fluent-neutral-light);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fluent-neutral-dark);
    cursor: pointer;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-filter-toggle i {
    color: var(--fluent-primary);
}

.mobile-filter-toggle .filter-count {
    background: var(--fluent-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

body.filter-open {
    overflow: hidden;
}

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

@media (max-width: 767px) {
    /* Show mobile filter, hide desktop */
    .mobile-filter-toggle {
        display: flex;
    }

    .mobile-filter-overlay {
        display: block;
        z-index: 9998;
    }

    .mobile-filter-panel {
        display: block;
        z-index: 9999;
    }

    .filter-sidebar-col {
        display: none !important;
    }

    .breadcrumb-nav {
        font-size: 11px;
        margin-bottom: 12px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-panel-title {
        font-size: 15px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .filter-group {
        margin-bottom: 16px;
    }

    /* Results Header */
    .results-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        align-items: flex-start;
    }

    .results-count {
        font-size: 13px;
    }

    .view-toggle {
        align-self: flex-end;
    }

    /* CPA Card */
    .cpa-card {
        margin-bottom: 12px;
    }

    .cpa-card-body {
        padding: 16px;
    }

    .cpa-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .cpa-avatar {
        width: 48px;
        height: 48px;
        font-size: 16px;
        margin-right: 12px;
    }

    .cpa-name {
        font-size: 16px;
    }

    .cpa-credential {
        font-size: 12px;
    }

    .cpa-badges {
        margin-top: 8px;
    }

    .cpa-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .cpa-meta {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 0;
    }

    .cpa-meta-label {
        font-size: 10px;
    }

    .cpa-meta-value {
        font-size: 12px;
    }

    .cpa-meta-value i {
        font-size: 11px;
        margin-right: 4px;
    }

    .cpa-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cpa-actions .btn {
        font-size: 12px;
        padding: 8px 12px;
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
        justify-content: center;
    }

    .btn-view-profile {
        flex: 1 1 100%;
    }

    /* Grid View */
    .cpa-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cpa-card-grid-header {
        padding: 16px;
    }

    .cpa-card-grid .cpa-avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .cpa-card-grid-body {
        padding: 16px;
    }

    /* Empty State */
    .empty-state {
        padding: 40px 16px;
    }

    .empty-state-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .empty-state h3 {
        font-size: 18px;
    }

    .empty-state p {
        font-size: 13px;
    }

    /* Pagination */
    .pagination-wrapper {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .cpa-meta {
        grid-template-columns: 1fr;
    }

    .cpa-actions .btn {
        min-width: 100%;
    }

    .cpa-card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .cpa-avatar {
        margin-bottom: 12px;
    }
}
