/**
 * Opportunity Feed Styles
 * Blackstone | KKR | Apollo | Carlyle Standards
 * Elite Private Equity Aesthetic
 */

/* Import Comprehensive Elite Banking Design System */
@import url('elite-banking-design-system.css');

/* Container */
.sffc-opportunity-feed {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.sffc-feed-header {
    background: linear-gradient(135deg, #132D51 0%, #2C5530 100%);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sffc-feed-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.sffc-feed-subtitle {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Statistics */
.sffc-feed-stats {
    display: flex;
    gap: 20px;
}

.sffc-stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.sffc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.sffc-stat-label {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-stat-card.sffc-perfect {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
}

.sffc-stat-card.sffc-high {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.3), rgba(46, 204, 113, 0.3));
}

/* Filters */
.sffc-feed-filters {
    background: #f8f9fa;
    padding: 20px;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}

.sffc-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sffc-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.sffc-filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.sffc-btn-primary {
    background: #132D51;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sffc-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.sffc-btn-secondary {
    background: #e8e8e8;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sffc-btn-secondary:hover {
    background: #d8d8d8;
}

/* Active Filters */
.sffc-active-filters {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sffc-filter-pill {
    background: white;
    border: 1px solid #132D51;
    color: #132D51;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sffc-remove-filter {
    background: none;
    border: none;
    color: #132D51;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Feed Container */
.sffc-feed-container {
    background: white;
    padding: 30px;
    border: 1px solid #e8e8e8;
    border-radius: 0 0 12px 12px;
    min-height: 500px;
}

/* Loading State */
.sffc-feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.sffc-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2C5530;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Grid Layout */
.sffc-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.sffc-feed-grid.sffc-list-layout {
    display: block;
}

.sffc-feed-grid.sffc-list-layout .sffc-job-card {
    margin-bottom: 20px;
}

/* Job Card */
.sffc-job-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sffc-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.sffc-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #132D51;
}

/* Match Badge */
.sffc-match-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #132D51;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sffc-match-value {
    font-size: 18px;
    line-height: 1;
}

.sffc-match-label {
    font-size: 9px;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Perfect Match Card */
.sffc-job-card.sffc-perfect-match {
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03), rgba(255, 165, 0, 0.03));
}

.sffc-job-card.sffc-perfect-match .sffc-match-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* Job Header */
.sffc-job-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sffc-job-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.sffc-job-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sffc-job-title a:hover {
    color: #132D51;
}

.sffc-company-name {
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

/* Job Meta */
.sffc-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.sffc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sffc-meta-item i {
    font-size: 12px;
    opacity: 0.7;
}

/* Match Factors */
.sffc-match-factors {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.sffc-factor-pill {
    background: #f0f4ff;
    color: #132D51;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Skills */
.sffc-job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.sffc-skill-tag {
    background: #f5f5f5;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* Description */
.sffc-job-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Job Footer */
.sffc-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.sffc-posted-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Job Actions */
.sffc-job-actions {
    display: flex;
    gap: 8px;
}

.sffc-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sffc-action-btn:hover {
    background: #132D51;
    color: white;
    border-color: #132D51;
    transform: scale(1.1);
}

.sffc-save-btn:hover {
    background: #F39C12;
    border-color: #F39C12;
}

.sffc-tailor-btn:hover {
    background: #3498DB;
    border-color: #3498DB;
}

.sffc-apply-btn:hover {
    background: #27AE60;
    border-color: #27AE60;
}

/* Status Badges */
.sffc-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-applied-badge {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
    border: 1px solid #27AE60;
}

.sffc-saved-badge {
    background: rgba(243, 156, 18, 0.1);
    color: #F39C12;
    border: 1px solid #F39C12;
    top: 45px;
}

/* Card States */
.sffc-job-card.sffc-viewed {
    opacity: 0.85;
}

.sffc-job-card.sffc-applied .sffc-apply-btn {
    background: #27AE60;
    color: white;
    border-color: #27AE60;
}

.sffc-job-card.sffc-saved .sffc-save-btn {
    background: #F39C12;
    color: white;
    border-color: #F39C12;
}

/* Empty State */
.sffc-feed-empty {
    text-align: center;
    padding: 80px 20px;
}

.sffc-empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.sffc-feed-empty h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.sffc-feed-empty p {
    color: #666;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Load More */
.sffc-load-more {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

#load-more-btn {
    padding: 12px 40px;
    font-size: 16px;
}

/* Icons (using Unicode or FontAwesome fallback) */
.sffc-icon-location::before { content: "📍"; }
.sffc-icon-money::before { content: "💰"; }
.sffc-icon-briefcase::before { content: "💼"; }
.sffc-icon-clock::before { content: "🕐"; }
.sffc-icon-bookmark::before { content: "🔖"; }
.sffc-icon-edit::before { content: "✏️"; }
.sffc-icon-send::before { content: "📤"; }
.sffc-icon-star::before { content: "⭐"; }
.sffc-icon-check::before { content: "✅"; }
.sffc-icon-thumbs-up::before { content: "👍"; }
.sffc-icon-smile::before { content: "😊"; }
.sffc-icon-meh::before { content: "😐"; }
.sffc-icon-info::before { content: "ℹ️"; }

/* Responsive Design */
@media (max-width: 1200px) {
    .sffc-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sffc-feed-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sffc-feed-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .sffc-feed-grid {
        grid-template-columns: 1fr;
    }
    
    .sffc-filter-row {
        flex-direction: column;
    }
    
    .sffc-search-input,
    .sffc-filter-select {
        width: 100%;
    }
    
    .sffc-job-actions {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 480px) {
    .sffc-stat-card {
        padding: 10px;
    }
    
    .sffc-stat-value {
        font-size: 20px;
    }
    
    .sffc-job-card {
        padding: 15px;
    }
    
    .sffc-job-title {
        font-size: 16px;
    }
}