/* ==========================================
   EXPLORE PAGE – CLEAN ALIGNED LAYOUT
   ========================================== */
:root {
    --ep-bg: #f5f5f5;
    --ep-surface: #ffffff;
    --ep-border: #e8e8e8;
    --ep-border-light: #f0f0f0;
    --ep-text: #1a1a1a;
    --ep-text-secondary: #666666;
    --ep-text-muted: #999999;
    --ep-primary: #4a3aff;
    --ep-primary-light: #eeedff;
    --ep-green: #00a86b;
    --ep-green-light: #e6f9f0;
    --ep-orange: #ff8c00;
    --ep-red: #ff4757;
    --ep-radius: 12px;
    --ep-radius-sm: 8px;
    --ep-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    --ep-shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
    --ep-transition: all 0.2s ease;
}

.explore-page-wrapper {
    background: var(--ep-bg);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ---- Page Header ---- */
.explore-page-header {
    background: var(--ep-surface);
    border-bottom: 1px solid var(--ep-border);
    padding: 24px 0;
}

.explore-page-header .container-lg {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0;
}

.page-header-title h1 span {
    color: var(--ep-text-muted);
    font-weight: 400;
    font-size: 16px;
    margin-left: 4px;
}

/* Tab pills in header */
.header-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.header-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ep-text-secondary);
    background: var(--ep-bg);
    border: 1px solid var(--ep-border);
    transition: var(--ep-transition);
    white-space: nowrap;
}

.header-tab:hover {
    border-color: var(--ep-primary);
    color: var(--ep-primary);
    background: var(--ep-primary-light);
}

.header-tab.active {
    background: var(--ep-primary);
    color: #fff;
    border-color: var(--ep-primary);
}

.header-tab .tab-num {
    font-size: 11px;
    opacity: 0.7;
}

.header-tab.active .tab-num {
    opacity: 0.9;
}

.header-tab i {
    font-size: 14px;
}

/* ---- 3-Column Layout ---- */
.explore-layout {
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 20px;
    align-items: start;
}

/* ---- LEFT SIDEBAR – Filters ---- */
.filter-sidebar {
    position: sticky;
    top: 80px;
}

.filter-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: var(--ep-shadow);
}

.filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ep-border);
}

.filter-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-card-header h3 .filter-count {
    background: var(--ep-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-card-header .clear-all {
    font-size: 12px;
    color: var(--ep-primary);
    text-decoration: none;
    font-weight: 600;
}

.filter-card-header .clear-all:hover {
    text-decoration: underline;
}

/* Active filter tags */
.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 18px 4px;
}

.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--ep-primary-light);
    color: var(--ep-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(74, 58, 255, 0.15);
}

.active-tag .remove-tag {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}

.active-tag .remove-tag:hover {
    opacity: 1;
}

/* Filter Sections (collapsible) */
.filter-section {
    border-bottom: 1px solid var(--ep-border-light);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: var(--ep-transition);
}

.filter-section-header:hover {
    background: #fafafa;
}

.filter-section-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0;
}

.filter-section-header .chevron {
    font-size: 14px;
    color: var(--ep-text-muted);
    transition: transform 0.2s ease;
}

.filter-section.collapsed .chevron {
    transform: rotate(-90deg);
}

.filter-section-body {
    padding: 0 18px 14px;
}

.filter-section.collapsed .filter-section-body {
    display: none;
}

/* Filter field styles */
.filter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    font-size: 13px;
    color: var(--ep-text);
    background: #fafafa;
    outline: none;
    transition: var(--ep-transition);
}

.filter-input:focus {
    border-color: var(--ep-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.08);
}

.filter-input::placeholder {
    color: var(--ep-text-muted);
}

/* Radio group */
.filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ep-text-secondary);
    cursor: pointer;
    padding: 2px 0;
}

.filter-radio-group label:hover {
    color: var(--ep-text);
}

.filter-radio-group input[type="radio"] {
    accent-color: var(--ep-primary);
    width: 15px;
    height: 15px;
    margin: 0;
}

/* Select dropdown */
.filter-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    font-size: 13px;
    color: var(--ep-text);
    background: #fafafa;
    outline: none;
    cursor: pointer;
    transition: var(--ep-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 32px;
}

.filter-select:focus {
    border-color: var(--ep-primary);
    background-color: #fff;
}

/* Apply button */
.btn-apply {
    width: 100%;
    padding: 11px;
    background: var(--ep-primary);
    color: #fff;
    border: none;
    border-radius: var(--ep-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ep-transition);
    margin-top: 4px;
}

.btn-apply:hover {
    background: #3a2be0;
    transform: translateY(-1px);
}

/* ---- CENTER – Profile Cards ---- */
.results-area {}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.results-bar .count-text {
    font-size: 14px;
    color: var(--ep-text-secondary);
    font-weight: 500;
}

.results-bar .count-text strong {
    color: var(--ep-text);
    font-weight: 700;
}

.results-bar .sort-pill {
    padding: 6px 14px;
    border: 1px solid var(--ep-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-text-secondary);
    background: var(--ep-surface);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 28px;
}

/* Profile Card – Clean List Style */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--ep-transition);
    position: relative;
    box-shadow: var(--ep-shadow);
}

.profile-card:hover {
    border-color: #c8c8ff;
    box-shadow: var(--ep-shadow-md);
}

.profile-card .card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--ep-text-muted);
    font-size: 18px;
    text-decoration: none;
    transition: var(--ep-transition);
}

.profile-card:hover .card-arrow {
    color: var(--ep-primary);
    transform: translateX(3px);
}

/* Avatar / Logo */
.card-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--ep-radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-avatar.bg-seeker {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.card-avatar.bg-freelancer {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.card-avatar.bg-recruiter {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.card-avatar.bg-company {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

/* Card Content */
.card-content {
    flex: 1;
    min-width: 0;
}

.card-content .card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ep-text);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
    transition: var(--ep-transition);
}

.card-content .card-name:hover {
    color: var(--ep-primary);
}

.card-content .card-subtitle {
    font-size: 13px;
    color: var(--ep-text-secondary);
    margin-bottom: 8px;
}

/* Meta row (location, salary, etc.) */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}

.card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ep-text-muted);
}

.card-meta .meta-item i {
    font-size: 13px;
    color: var(--ep-text-muted);
}

/* Tags row */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid var(--ep-border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ep-text-secondary);
}

.card-tag i {
    font-size: 11px;
}

.card-tag.highlight {
    background: var(--ep-green-light);
    color: var(--ep-green);
    border-color: rgba(0, 168, 107, 0.15);
}

/* Badge on card */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.card-badge.success {
    background: #e6f9f0;
    color: #00a86b;
}

.card-badge.info {
    background: #e8f0fe;
    color: #1a73e8;
}

.card-badge.primary {
    background: var(--ep-primary-light);
    color: var(--ep-primary);
}

/* Card actions row (bottom) */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-actions .btn-connect {
    padding: 7px 16px;
    background: var(--ep-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ep-transition);
}

.card-actions .btn-connect:hover {
    background: #3a2be0;
}

.card-actions .btn-view {
    padding: 7px 16px;
    background: transparent;
    color: var(--ep-primary);
    border: 1.5px solid var(--ep-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ep-transition);
}

.card-actions .btn-view:hover {
    background: var(--ep-primary-light);
}

.card-actions .btn-save {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--ep-border);
    border-radius: 6px;
    background: transparent;
    color: var(--ep-text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ep-transition);
}

.card-actions .btn-save:hover {
    border-color: var(--ep-primary);
    color: var(--ep-primary);
}

/* Stats inside card */
.card-stats-inline {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--ep-text-muted);
    margin-bottom: 10px;
}

.card-stats-inline .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-stats-inline .stat-item strong {
    color: var(--ep-text);
    font-weight: 700;
}

/* Demo tag */
.demo-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff3e0;
    color: var(--ep-orange);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* ---- RIGHT SIDEBAR – Info Panel ---- */
.info-sidebar {
    position: sticky;
    top: 80px;
}

.info-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: var(--ep-shadow);
    margin-bottom: 16px;
}

.info-card-highlight {
    background: linear-gradient(135deg, #4a3aff 0%, #6c5ce7 100%);
    color: #fff;
    padding: 24px 20px;
}

.info-card-highlight h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.info-card-highlight .info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.info-card-highlight .info-list li {
    font-size: 13px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-highlight .info-list li i {
    color: #a3e635;
    font-size: 14px;
}

.info-card-highlight .btn-cta {
    display: block;
    text-align: center;
    padding: 12px;
    background: #fff;
    color: var(--ep-primary);
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--ep-transition);
    margin-top: 8px;
}

.info-card-highlight .btn-cta:hover {
    background: #f0f0ff;
}

/* Stats card */
.stats-info-card {
    padding: 20px;
}

.stats-info-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0 0 14px;
}

.stats-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    text-align: center;
    padding: 12px 8px;
    background: #fafafa;
    border-radius: var(--ep-radius-sm);
    border: 1px solid var(--ep-border-light);
}

.stat-box .stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--ep-primary);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ep-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* Quick links card */
.quick-links-card {
    padding: 0;
}

.quick-links-card .ql-title {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text);
    border-bottom: 1px solid var(--ep-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-links-card .ql-title i {
    color: var(--ep-primary);
}

.ql-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    text-decoration: none;
    color: var(--ep-text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid var(--ep-border-light);
    transition: var(--ep-transition);
}

.ql-item:last-child {
    border-bottom: none;
}

.ql-item:hover {
    background: var(--ep-primary-light);
    color: var(--ep-primary);
}

.ql-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

/* Empty state */
.empty-state-card {
    background: var(--ep-surface);
    border: 2px dashed var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 60px 32px;
    text-align: center;
}

.empty-state-card .empty-icon {
    width: 64px;
    height: 64px;
    background: var(--ep-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-card .empty-icon i {
    font-size: 28px;
    color: var(--ep-primary);
}

.empty-state-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0 0 6px;
}

.empty-state-card p {
    font-size: 13px;
    color: var(--ep-text-secondary);
    margin: 0 0 20px;
}

.empty-state-card .btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--ep-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--ep-transition);
}

.empty-state-card .btn-reset:hover {
    background: #3a2be0;
    color: #fff;
}

/* Mobile toggle */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--ep-surface);
    border: 1.5px solid var(--ep-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ep-text-secondary);
    cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .explore-layout {
        grid-template-columns: 240px 1fr;
    }

    .info-sidebar {
        display: none;
    }
}

@media (max-width: 860px) {
    .explore-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .filter-card {
        display: none;
    }

    .filter-card.mobile-open {
        display: block;
    }

    .mobile-filter-btn {
        display: inline-flex !important;
    }
}

@media (max-width: 540px) {
    .explore-page-header {
        padding: 16px 0;
    }

    .page-header-title h1 {
        font-size: 18px;
    }

    .page-header-title h1 span {
        display: block;
        font-size: 13px;
        margin-left: 0;
        margin-top: 2px;
    }

    .header-tabs {
        gap: 4px;
    }

    .header-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .header-tab .tab-num {
        display: none;
    }

    .explore-layout {
        padding: 12px 16px 0;
        gap: 12px;
    }

    .profile-card {
        padding: 14px;
    }

    .card-avatar {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .card-content .card-name {
        font-size: 14px;
    }

    .card-meta {
        gap: 8px;
    }

    .card-actions {
        flex-wrap: wrap;
    }
}

