/**
 * Influencer Module Modular Stylesheet
 * Standardized per doc/core/mdv3.md guidelines
 */

/* ── 1. Variables & Root Overrides ─────────────────────────────────────── */
:root {
    --brand-purple: #764ba2;
    --brand-purple-light: #667eea;
    --brand-coral: #764ba2;
    --brand-orange: #667eea;
}

/* ── 2. Hero & Discovery Section ───────────────────────────────────────── */
.hero-section {
    background: #fff;
    background-image: 
        linear-gradient(rgba(118, 75, 162, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 75, 162, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #1a1a1a;
    padding: 60px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-badge i {
    color: #ffc107;
    margin: 0 4px;
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, #764ba2 0%, #ff5e62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 3. Custom Search Bar & Platform Selector ─────────────────────────── */
.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 20;
}

.custom-search-bar {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 100px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.custom-search-bar:focus-within {
    border-color: var(--brand-purple, #764ba2);
    box-shadow: 0 10px 40px rgba(118, 75, 162, 0.15);
}

.platform-selector {
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-right: 1px solid #eee;
    gap: 10px;
    cursor: pointer;
}

.platform-selector i {
    color: #764ba2;
    font-size: 20px;
}

.platform-selector span {
    font-weight: 600;
    color: #1a1a1a;
}

.search-input-wrapper {
    flex-grow: 1;
    padding: 0 20px;
}

.search-input-wrapper input {
    border: none;
    width: 100%;
    font-size: 16px;
    padding: 10px 0;
    outline: none;
}

.search-btn-sparkle {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-btn-sparkle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.hero-actions .btn-find {
    background: linear-gradient(90deg, #764ba2 0%, #ff5e62 100%);
    color: white;
    border: none;
    padding: 14px 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-block;
}

.hero-actions .btn-find:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
    color: white;
}

/* ── 4. Floating Elements & Animations ───────────────────────────────── */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-avatar {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.avatar-1 { top: 15%; left: 10%; animation-delay: 0s; }
.avatar-2 { top: 60%; left: 8%; animation-delay: 1s; }
.avatar-3 { top: 20%; right: 12%; animation-delay: 2s; }
.avatar-4 { top: 70%; right: 10%; animation-delay: 3s; }
.avatar-5 { top: 40%; left: 20%; animation-delay: 4s; width: 45px; height: 45px; }
.avatar-6 { top: 45%; right: 22%; animation-delay: 5s; width: 50px; height: 50px; }

/* ── 5. Feature Boxes ─────────────────────────────────────────────────── */
.feature-container {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-wrapper i {
    font-size: 1.75rem;
    color: #333;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #ff9966 0%, #ff5e62 100%);
    margin: 0 10px 14px 0;
}

.feature-badge i {
    font-size: 11px;
    margin-right: 8px;
}

.try-btn {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s;
}

.try-btn:hover {
    background: #f8f9fa;
    border-color: #ddd;
    color: #000;
}

.learn-more-link {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    margin-left: 20px;
    font-size: 1rem;
}

.learn-more-link:hover {
    color: #1a1a1a;
}

/* ── 6. Statistics ────────────────────────────────────────────────────── */
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── 7. Search Header & Filter Controls ──────────────────────────────── */
.search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 30px;
}

.filter-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.filter-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.advanced-toggle-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.advanced-toggle-btn:hover {
    background: #667eea;
    color: white;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
}

/* ── 8. Influencer List Items ─────────────────────────────────────────── */
.influencer-list-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.influencer-list-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.influencer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.stat-item {
    text-align: center;
    padding: 0 15px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.topic-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #495057;
    display: inline-block;
    margin: 2px;
}

.verified-badge {
    color: #3897f0;
}

.view-profile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.9rem;
}

.update-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 8px;
}

/* ── 9. Select2 Container Overrides ───────────────────────────────────── */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #495057;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}
