/* ========================================
   CLIENTS SECTION STYLES
   Interactive Map & Industry Tabs
   ======================================== */

/* ========== LAYOUT A: MAP STYLES ========== */
#client-map {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dark #client-map {
    filter: hue-rotate(180deg) invert(90%);
}

/* Custom marker pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Map tooltip styling */
.leaflet-tooltip {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 0.75rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.map-tooltip strong {
    color: #2C3E2C;
    font-size: 0.95rem;
}

.map-tooltip small {
    color: #5A6E5A;
    font-size: 0.8rem;
}

/* Map legend */
.map-legend {
    pointer-events: auto !important;
}

.dark .map-legend > div {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* ========== LAYOUT B: TABS STYLES ========== */
.tabs-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tabs-header::-webkit-scrollbar {
    height: 4px;
}

.tabs-header::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.tabs-header::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(184, 150, 74, 0.3);
}

.tabs-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Client grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Client card */
.client-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.client-card.featured {
    border-color: #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, var(--bg-card) 100%);
}

/* Featured star badge */
.featured-star {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: #FF6B35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
}

/* Client icon */
.client-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    box-shadow: 0 0 20px rgba(184, 150, 74, 0.3);
}

.client-card.featured .client-icon {
    background: #FF6B35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Client name */
.client-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

/* Client location */
.client-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.inline-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* ========== STATS SECTION ========== */
.client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    #client-map {
        height: 500px;
        border-radius: 12px;
    }
    
    .tabs-header {
        gap: 0.375rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn i {
        margin: 0;
    }
    
    .client-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .client-stats {
        grid-template-columns: 1fr;
    }
}