/* Buyer Profiles Page Styles */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: #f0f4ff;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Main Content */
.main-content {
    padding: 32px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px 0;
}

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

.header-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

.header-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Filters Section */
.filters-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

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

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

.clear-filters {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.clear-filters:hover {
    background-color: #f0f4ff;
}

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

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.filter-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Buyers Grid */
.buyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* Buyer Cards */
.buyer-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.buyer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.buyer-card.premium-card {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0;
}

.buyer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buyer-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #744210;
}

.buyer-badge.verified {
    background: #e6fffa;
    color: #047857;
}

.buyer-badge.rising {
    background: #f0f9ff;
    color: #0369a1;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Buyer Profile */
.buyer-profile {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.buyer-avatar.large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.buyer-avatar.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: var(--success-color);
    border: 2px solid white;
    border-radius: 50%;
}

.online-indicator.offline {
    background: var(--text-muted);
}

.buyer-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.buyer-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.buyer-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Key Metrics */
.key-metrics {
    padding: 0 20px 20px;
}

.metric-row {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.metric-row:last-child {
    margin-bottom: 0;
}

.metric {
    flex: 1;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value.success {
    color: var(--success-color);
}

/* Buyer Highlights */
.buyer-highlights {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-color);
}

.buyer-highlights h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.highlight-icon {
    font-size: 14px;
}

/* Acquisition History */
.acquisition-history {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.acquisition-history h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.deal-size {
    font-size: 12px;
    color: var(--success-color);
    font-weight: 600;
}

.deal-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Compatibility Score */
.compatibility-score {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.score-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(var(--success-color) 0deg 338deg, var(--bg-tertiary) 338deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.score-circle.moderate {
    background: conic-gradient(var(--warning-color) 0deg 281deg, var(--bg-tertiary) 281deg 360deg);
}

.score-circle.good {
    background: conic-gradient(var(--success-color) 0deg 295deg, var(--bg-tertiary) 295deg 360deg);
}

.score-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1;
}

.compatibility-factors {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.factor {
    font-size: 12px;
    padding: 4px 0;
}

.factor.match {
    color: var(--success-color);
}

.factor.warning {
    color: var(--warning-color);
}

.factor.mismatch {
    color: var(--danger-color);
}

/* Card Actions Bottom */
.card-actions-bottom {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.btn-reject {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-connect {
    flex: 2;
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 32px 0;
}

.btn-load-more {
    padding: 12px 32px;
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: white;
}

.load-more-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .buyers-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-row {
        flex-direction: column;
        gap: 8px;
    }
}
