/* =====================================
   PATHFINDR EXPLORE MENTORS PAGE STYLES
   ===================================== */

/* ---------- Layout Base ---------- */


/* Explore Container */
.explore-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 18px 20px 28px;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 14px;
        }

        .page-eyebrow {
            color: var(--purple-primary);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.08em;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .page-title {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .page-subtitle {
            font-size: 16px;
            color: var(--text-secondary);
        }

        .safety-banner {
            background: #f0f9ff;
            border: 1px solid #bae6fd;
            border-radius: 12px;
            display: flex;
            gap: 14px;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            margin-bottom: 14px;
            color: #075985;
        }

        .safety-banner strong,
        .safety-banner span {
            display: block;
        }

        .safety-banner span {
            margin-top: 2px;
        }

        .safety-banner a {
            color: #075985;
            font-weight: 700;
            text-decoration: none;
            white-space: nowrap;
        }

        /* Filters Section */
        .filters-section {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
        }

        .filters-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .filters-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .clear-filters {
            background: transparent;
            border: 0;
            color: var(--purple-primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .clear-filters:hover {
            color: var(--purple-secondary);
        }

        .filters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 12px;
        }

        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .filter-tag {
            padding: 6px 12px;
            background: var(--purple-light);
            color: var(--purple-primary);
            border-radius: 16px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            font-family: inherit;
        }

        .filter-tag:hover {
            border-color: var(--purple-primary);
        }

        .filter-tag.active {
            background: var(--purple-primary);
            color: white;
        }

        /* Mentors Grid */
        .mentors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 16px;
        }

        .results-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin: 0 0 12px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .refresh-button {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            cursor: pointer;
            font-family: inherit;
            font-weight: 700;
            padding: 8px 12px;
        }

        .mentor-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 500px;
            padding: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .mentor-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            border-color: var(--purple-primary);
        }

        .mentor-header {
            display: flex;
            gap: 14px;
            margin-bottom: 12px;
        }

        .mentor-avatar-large {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--purple-primary), var(--info));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: 600;
            flex-shrink: 0;
        }

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

        .mentor-name-row {
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 10px;
        }

        .mentor-name {
            display: -webkit-box;
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
            min-height: 44px;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .mentor-title {
            display: -webkit-box;
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            min-height: 38px;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .mentor-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            font-size: 13px;
            color: var(--text-tertiary);
            min-height: 40px;
        }

        .mentor-card-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 10px;
            min-height: 30px;
        }

        .match-reasons {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
            min-height: 28px;
        }

        .match-reasons span {
            background: var(--purple-light);
            border: 1px solid rgba(139, 92, 246, 0.18);
            border-radius: 999px;
            color: var(--purple-primary);
            font-size: 12px;
            font-weight: 800;
            padding: 5px 9px;
        }

        .trust-badges-mini {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
            min-height: 28px;
        }

        .trust-badge-mini {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 999px;
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 800;
            padding: 5px 8px;
        }

        .stat-icon {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .mentor-bio {
            display: -webkit-box;
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 12px;
            min-height: 64px;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }

        .mentor-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
            min-height: 32px;
        }

        .skill-tag {
            padding: 4px 10px;
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .mentor-actions {
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin-top: auto;
        }

        .mentor-actions .connect-button,
        .mentor-actions .message-button {
            font-size: 13px;
            padding-left: 8px;
            padding-right: 8px;
            width: 100%;
        }

        /* Compact card additions: match badge + clamped text so every card in
           a row keeps the same height. */
        .match-pill {
            background: var(--purple-light);
            border-radius: 999px;
            color: var(--purple-primary);
            font-size: var(--text-caption, 12px);
            font-weight: var(--weight-bold, 700);
            padding: 4px 10px;
            white-space: nowrap;
        }

        .mentor-name {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
        }

        .mentor-title {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            min-height: 2.6em;
            overflow: hidden;
        }

        .mentor-bio {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            min-height: 4.1em;
            overflow: hidden;
        }

        .trust-actions {
            display: flex;
            gap: 14px;
            margin-bottom: 12px;
        }

        .text-button {
            background: transparent;
            border: 0;
            color: var(--text-secondary);
            cursor: pointer;
            font-family: inherit;
            font-size: 13px;
            font-weight: 700;
            padding: 0;
        }

        .text-button:hover {
            color: var(--purple-primary);
        }

        .connect-button {
            flex: 1;
            padding: 10px;
            background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 48px;
            white-space: nowrap;
        }

        .connect-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }

        .connect-button:disabled {
            background: var(--bg-tertiary);
            box-shadow: none;
            color: var(--text-secondary);
            cursor: not-allowed;
            transform: none;
        }

        .message-button {
            padding: 10px 16px;
            background: var(--card-bg);
            color: var(--purple-primary);
            border: 2px solid var(--purple-primary);
            border-radius: 8px;
            /* Same type on <button> and <a>: buttons default to the UA font,
               anchors inherit the page font — force both to match. */
            font-family: inherit;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 48px;
            white-space: nowrap;
        }

        /* Links styled as .message-button (e.g. "Learn More" on career cards)
           need button-like box alignment and no underline. */
        a.message-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            text-decoration: none;
        }

        .message-button:hover {
            background: var(--purple-primary);
            color: white;
        }

        .availability-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            background: #f0fdf4;
            color: #15803d;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .industry-pill {
            background: var(--bg-tertiary);
            border-radius: 12px;
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 700;
            padding: 4px 8px;
        }

        body.dark-mode .availability-badge {
            background: #14532d;
            color: #86efac;
        }

        .availability-dot {
            width: 6px;
            height: 6px;
            background: #15803d;
            border-radius: 50%;
        }

        body.dark-mode .availability-dot {
            background: #86efac;
        }

        /* Empty State */
        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
        }

        .empty-icon {
            font-size: 20px;
            font-weight: 800;
            margin-bottom: 16px;
            color: var(--purple-primary);
        }

        .empty-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .empty-description {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .path-catalog-section {
            margin-top: 34px;
        }

        .path-catalog-header {
            align-items: flex-end;
            display: flex;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 14px;
        }

        .path-catalog-header h2 {
            color: var(--text-primary);
            font-size: 26px;
            margin-bottom: 6px;
        }

        .path-catalog-header p {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .path-catalog-grid {
            display: grid;
            gap: 14px;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        }

        .path-catalog-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-height: 230px;
            padding: 18px;
        }

        .path-catalog-card h3 {
            color: var(--text-primary);
            font-size: 17px;
            margin-bottom: 6px;
        }

        .path-catalog-card p {
            color: var(--text-secondary);
            font-size: 13px;
        }

        .path-catalog-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .path-catalog-tags span {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 999px;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 700;
            padding: 5px 8px;
        }

        .path-card-actions {
            display: grid;
            gap: 10px;
            margin-top: auto;
        }

        .path-filter-button,
        .path-learn-button {
            align-items: center;
            display: inline-flex;
            justify-content: center;
            text-decoration: none;
            width: 100%;
        }

        @media (max-width: 768px) {
            .page-header,
            .safety-banner,
            .results-bar,
            .path-catalog-header {
                flex-direction: column;
                align-items: stretch;
            }

            .mentors-grid {
                grid-template-columns: 1fr;
            }

            .filters-grid {
                grid-template-columns: 1fr;
            }

            .page-title {
                font-size: 24px;
            }
        }
