/* PE Intelligence Cards - Premium Styling */
/* Color Palette:
   Cream: #FFF8F0
   Navy: #0F172A
   Forest Green: #1B4332
   Gold Gradient: linear-gradient(135deg, #B08D57 0%, #CB997E 100%)
*/

:root {
    --cream: #FFF8F0;
    --navy: #0F172A;
    --forest: #1B4332;
    --gold-gradient: linear-gradient(135deg, #B08D57 0%, #CB997E 100%);
    --gold-primary: #B08D57;
    --gold-secondary: #CB997E;
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.16);
}

/* Reset WordPress theme constraints */
.entry-content .sffc-intelligence-dashboard,
.page-content .sffc-intelligence-dashboard,
.site-main .sffc-intelligence-dashboard,
article .sffc-intelligence-dashboard {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Hide CV upload container on PE Intelligence pages - CRITICAL FIX */
.sffc-intelligence-dashboard .cv-upload-container,
.sffc-intelligence-dashboard #cv-upload-interface,
.sffc-intelligence-dashboard .sffc-cv-upload-container,
.sffc-intelligence-dashboard #sffc-cv-upload-wrapper,
body:has(.sffc-intelligence-dashboard) .cv-upload-container,
body:has(.sffc-intelligence-dashboard) #cv-upload-interface {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Dashboard Container */
.sffc-intelligence-dashboard {
    background: var(--cream);
    min-height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    overflow-x: hidden;
}

/* Filter Bar */
.sffc-filter-bar {
    background: linear-gradient(135deg, #0D353E 0%, #0D353E 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(13, 53, 62, 0.3);
    width: 100%;
}

.sffc-filter-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Skill Farm Branding */
.sffc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sffc-brand:hover {
    transform: translateX(2px);
}

.sffc-brand-logo {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sffc-brand-logo-s {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sffc-brand:hover .sffc-brand-logo-s {
    transform: scale(1.05);
}

.sffc-brand-logo-dot {
    position: absolute;
    top: 2px;
    right: 0px;
    width: 8px;
    height: 8px;
    background: var(--gold-gradient);
    border-radius: 50%;
    box-shadow: 
        0 0 12px rgba(176, 141, 87, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 12px rgba(176, 141, 87, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 0 20px rgba(176, 141, 87, 0.8),
            0 2px 6px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 0 12px rgba(176, 141, 87, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.sffc-brand-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sffc-brand-skill {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.sffc-brand-farm {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.sffc-story-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px;
    flex: 1;
}

.sffc-story-filters::-webkit-scrollbar {
    display: none;
}

.sffc-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 45px;
}

.sffc-filter-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sffc-filter-item:hover .sffc-filter-circle {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 141, 87, 0.3);
}

.sffc-filter-item.active .sffc-filter-circle {
    background: var(--gold-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(176, 141, 87, 0.4);
}

.sffc-filter-icon {
    font-size: 11px;
    font-weight: 600;
    color: white;
    opacity: 0.9;
}

.sffc-filter-item:hover .sffc-filter-icon {
    opacity: 1;
}

.sffc-filter-item.active .sffc-filter-icon {
    color: white;
    opacity: 1;
}

.sffc-filter-icon svg {
    width: 18px;
    height: 18px;
}

.sffc-filter-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #DC2626;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.sffc-filter-label {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    opacity: 0.7;
}

.sffc-filter-item:hover .sffc-filter-label {
    opacity: 0.9;
}

.sffc-filter-item.active .sffc-filter-label {
    opacity: 1;
    font-weight: 600;
    color: var(--gold-primary);
}

.sffc-filter-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

/* Company Bar */
.sffc-company-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    width: 100%;
}

.sffc-company-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) transparent;
}

.sffc-company-scroll::-webkit-scrollbar {
    height: 6px;
}

.sffc-company-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sffc-company-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

.sffc-company-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
    border: 1px solid rgba(192, 192, 192, 0.15);
    border-radius: 12px;
    padding: 16px;
    padding-left: 20px;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sffc-company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    transition: all 0.3s ease;
}

/* Company card color variations - subtle accents */
.sffc-company-card:nth-child(6n+1)::before {
    background: linear-gradient(180deg, var(--forest) 0%, rgba(27, 67, 50, 0.6) 100%);
}

.sffc-company-card:nth-child(6n+2)::before {
    background: linear-gradient(180deg, var(--navy) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.sffc-company-card:nth-child(6n+3)::before {
    background: linear-gradient(180deg, var(--gold-primary) 0%, rgba(176, 141, 87, 0.6) 100%);
}

.sffc-company-card:nth-child(6n+4)::before {
    background: linear-gradient(180deg, #2C5282 0%, rgba(44, 82, 130, 0.6) 100%);
}

.sffc-company-card:nth-child(6n+5)::before {
    background: linear-gradient(180deg, #234E52 0%, rgba(35, 78, 82, 0.6) 100%);
}

.sffc-company-card:nth-child(6n+6)::before {
    background: linear-gradient(180deg, #44337A 0%, rgba(68, 51, 122, 0.6) 100%);
}

.sffc-company-card:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    border-color: rgba(176, 141, 87, 0.2);
}

.sffc-company-card:hover::before {
    width: 4px;
    filter: brightness(1.2);
}

.sffc-company-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.sffc-company-aum {
    font-size: 13px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 12px;
}

.sffc-company-stats {
    display: flex;
    gap: 20px;
}

.sffc-stat {
    display: flex;
    flex-direction: column;
}

.sffc-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
}

.sffc-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    opacity: 0.5;
}

/* Cards Container */
.sffc-cards-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    background: var(--cream);
    min-height: calc(100vh - 200px);
}

@media (min-width: 1600px) {
    .sffc-cards-container {
        max-width: 1600px;
    }
}

.sffc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    width: 100%;
}

@media (min-width: 1200px) {
    .sffc-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .sffc-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1920px) {
    .sffc-cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Intelligence Card */
.sffc-intelligence-card {
    background: linear-gradient(135deg, #FAFBFC 0%, #F7F8FA 100%);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 6px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.sffc-intelligence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    pointer-events: none;
}

.sffc-intelligence-card:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-4px);
    border-color: rgba(176, 141, 87, 0.3);
}

/* Jobs Indicator */
.sffc-jobs-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--forest);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

/* Card Header */
.sffc-card-header {
    padding: 20px 20px 0;
}

.sffc-card-meta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sffc-company-badge,
.sffc-region-badge,
.sffc-time-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sffc-company-badge {
    background: var(--gold-gradient);
    color: white;
}

.sffc-region-badge {
    background: rgba(27, 67, 50, 0.1);
    color: var(--forest);
    border: 1px solid var(--forest);
}

.sffc-time-badge {
    background: rgba(15, 23, 42, 0.06);
    color: var(--navy);
    opacity: 0.7;
}

/* Card Content */
.sffc-card-content {
    padding: 0 20px 20px;
}

.sffc-card-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--navy);
    margin: 12px 0;
}

.sffc-card-summary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 16px;
}

/* Key Metrics */
.sffc-key-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(250, 251, 252, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.sffc-metric-item {
    text-align: center;
}

.sffc-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    opacity: 0.6;
    margin-bottom: 4px;
}

.sffc-metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
}

.sffc-metric-value.highlight {
    color: var(--gold-primary);
}

/* Card Chart */
.sffc-card-chart {
    margin: 16px 0;
}

.sffc-card-chart canvas {
    max-height: 80px !important;
}

/* AI Insight */
.sffc-ai-insight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(250, 251, 252, 0.4) 100%);
    border-left: 2px solid var(--gold-primary);
    border: 1px solid rgba(176, 141, 87, 0.15);
    border-left: 2px solid var(--gold-primary);
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    backdrop-filter: blur(5px);
}

.sffc-ai-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-primary);
    margin-bottom: 6px;
}

.sffc-ai-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--navy);
    font-style: italic;
}

/* Card Footer */
.sffc-card-footer {
    border-top: 1px solid rgba(192, 192, 192, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(250, 251, 252, 0.2) 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.sffc-action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(192, 192, 192, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 251, 252, 0.7) 100%);
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sffc-action-btn:hover {
    background: var(--gold-gradient);
    color: white;
    transform: translateY(-1px);
    border-color: transparent;
    box-shadow: 0 2px 4px rgba(176, 141, 87, 0.2);
}

.sffc-source-link {
    font-size: 12px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
}

.sffc-source-link:hover {
    text-decoration: underline;
}

/* Load More */
.sffc-load-more-container {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 48px;
}

.sffc-load-more-btn {
    padding: 14px 32px;
    background: var(--gold-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sffc-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sffc-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Company Sidebar */
.sffc-company-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sffc-company-sidebar.active {
    right: 0;
}

.sffc-sidebar-header {
    background: var(--gold-gradient);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sffc-sidebar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.sffc-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.sffc-sidebar-content {
    padding: 24px;
}

/* Loading States */
.sffc-card-loading {
    background: linear-gradient(90deg, #f3f3f3 25%, #e8e8e8 50%, #f3f3f3 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    /* Filter Bar */
    .sffc-filter-bar {
        padding: 12px 0;
    }
    
    .sffc-filter-content {
        padding: 0 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .sffc-filter-spacer {
        display: none;
    }
    
    .sffc-brand {
        width: 100%;
        justify-content: center;
    }
    
    .sffc-story-filters {
        width: 100%;
        justify-content: flex-start;
        padding: 0;
        gap: 16px;
    }
    
    /* Company Bar */
    .sffc-company-bar {
        padding: 16px 0;
    }
    
    .sffc-company-scroll {
        padding: 0 16px;
        gap: 12px;
    }
    
    .sffc-company-card {
        min-width: 160px;
        padding: 12px;
        padding-left: 16px;
    }
    
    /* Cards Grid */
    .sffc-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sffc-cards-container {
        padding: 16px;
    }
    
    /* Company Sidebar */
    .sffc-company-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Key Metrics */
    .sffc-key-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    /* Filter Bar */
    .sffc-filter-bar {
        padding: 10px 0;
        position: relative;
    }
    
    .sffc-filter-content {
        padding: 0 12px;
    }
    
    /* Brand - Mobile only show S with dot */
    .sffc-brand {
        gap: 0;
    }
    
    .sffc-brand-logo {
        width: 36px;
        height: 36px;
    }
    
    .sffc-brand-logo-s {
        font-size: 26px;
    }
    
    .sffc-brand-logo-dot {
        top: 2px;
        right: 2px;
        width: 7px;
        height: 7px;
    }
    
    .sffc-brand-text {
        display: none;
    }
    
    /* Filters */
    .sffc-story-filters {
        gap: 12px;
        padding: 4px 0;
    }
    
    .sffc-filter-item {
        min-width: 40px;
    }
    
    .sffc-filter-circle {
        width: 40px;
        height: 40px;
    }
    
    .sffc-filter-icon {
        font-size: 10px;
    }
    
    .sffc-filter-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .sffc-filter-label {
        font-size: 9px;
        margin-top: 4px;
    }
    
    .sffc-filter-badge {
        font-size: 8px;
        padding: 1px 4px;
        min-width: 14px;
    }
    
    .sffc-filter-separator {
        height: 25px;
        margin: 0 8px;
    }
    
    /* Company Bar */
    .sffc-company-bar {
        padding: 12px 0;
    }
    
    .sffc-company-scroll {
        padding: 0 12px;
        gap: 10px;
    }
    
    .sffc-company-card {
        min-width: 140px;
        padding: 10px;
        padding-left: 14px;
    }
    
    .sffc-company-name {
        font-size: 15px;
    }
    
    .sffc-company-aum {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .sffc-stat-value {
        font-size: 16px;
    }
    
    .sffc-stat-label {
        font-size: 10px;
    }
    
    /* Cards Container */
    .sffc-cards-container {
        padding: 12px;
    }
    
    .sffc-cards-grid {
        gap: 12px;
    }
    
    /* Card Elements */
    .sffc-card-header {
        padding: 16px 16px 0;
    }
    
    .sffc-card-content {
        padding: 0 16px 16px;
    }
    
    .sffc-card-headline {
        font-size: 18px;
        margin: 10px 0;
    }
    
    .sffc-card-summary {
        font-size: 13px;
    }
    
    .sffc-card-meta-row {
        gap: 6px;
    }
    
    .sffc-company-badge,
    .sffc-region-badge,
    .sffc-time-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* Jobs Indicator */
    .sffc-jobs-indicator {
        font-size: 11px;
        padding: 5px 10px;
        top: 10px;
        right: 10px;
    }
    
    /* Key Metrics */
    .sffc-key-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }
    
    .sffc-metric-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .sffc-metric-label {
        font-size: 10px;
    }
    
    .sffc-metric-value {
        font-size: 14px;
    }
    
    /* AI Insight */
    .sffc-ai-insight {
        padding: 10px;
        margin-top: 12px;
    }
    
    .sffc-ai-label {
        font-size: 9px;
    }
    
    .sffc-ai-text {
        font-size: 12px;
    }
    
    /* Card Footer */
    .sffc-card-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .sffc-card-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .sffc-action-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .sffc-source-link {
        font-size: 11px;
        text-align: center;
    }
    
    /* Load More */
    .sffc-load-more-container {
        margin-top: 24px;
        margin-bottom: 24px;
    }
    
    .sffc-load-more-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    /* Sidebar */
    .sffc-sidebar-header {
        padding: 16px;
    }
    
    .sffc-sidebar-title {
        font-size: 20px;
    }
    
    .sffc-sidebar-content {
        padding: 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .sffc-filter-circle {
        width: 36px;
        height: 36px;
    }
    
    .sffc-filter-item {
        min-width: 36px;
    }
    
    .sffc-filter-icon {
        font-size: 9px;
    }
    
    .sffc-filter-label {
        display: none;
    }
    
    .sffc-company-card {
        min-width: 120px;
    }
    
    .sffc-cards-grid {
        grid-template-columns: 1fr;
    }
}