/* ========================================
   HOME.CSS - Marketplace Page Specific Styles
   Global styles moved to base.css
   ======================================== */

/* ========================================
   HERO SECTION - MARKETPLACE
   ======================================== */
.hero-marketplace {
    margin-top: 4.5rem;
    padding: 6rem 0 2rem;
    background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.hero-marketplace::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.hero-marketplace::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.hero-marketplace .hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-marketplace .hero-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    position: relative;
}

.hero-marketplace .hero-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.hero-marketplace .hero-subtitle {
    font-size: 1.375rem;
    line-height: 1.65;
    color: var(--text-light);
    font-weight: 400;
    max-width: 680px;
    margin: 0 auto;
    margin-top: 2rem;
}

.hero-marketplace .hero-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-medium);
    font-weight: 400;
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    text-align: justify;
}

/* ========================================
   INFLUENCER MARKETPLACE
   ======================================== */
.influencer-marketplace {
    padding: 1rem 0 5rem;
    background: var(--bg-white);
}

.influencer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

.influencer-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.subscribed-badge {
    position: absolute;
    top: 32px;
    right: -33px;
    background: #f59e0b;
    color: white;
    padding: 6px 38px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: rotate(45deg);
    transform-origin: center;
    display: block;
    text-align: center;
    white-space: nowrap;
    line-height: 1.3;
    pointer-events: none;
}

.subscribed-badge svg {
    display: none;
}

.influencer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--text-light);
}

.influencer-avatar {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    border-radius: 1rem 1rem 0 0;
}

.influencer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.influencer-card:hover .influencer-avatar img {
    filter: grayscale(0%) brightness(1.05);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow);
}

.avatar-placeholder span {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-medium);
}

.influencer-info {
    padding: 1.75rem;
    flex: 1;
}

.influencer-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
}

.influencer-category {
    display: inline-block;
    background: var(--bg-lighter);
    color: var(--text-medium);
    padding: 0.375rem 0.875rem;
    border-radius: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}

.influencer-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-top: 0.75rem;
}

.influencer-stats {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-icon {
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.influencer-action {
    padding: 0 1.75rem 1.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    filter: grayscale(100%);
}

.empty-state h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.influencer-card {
    animation: fadeIn 0.4s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN - MARKETPLACE SPECIFIC
   ======================================== */
@media (max-width: 768px) {
    .hero-marketplace {
        padding: 4rem 0 3.5rem;
    }

    .hero-marketplace .hero-title {
        font-size: 2.75rem;
    }

    .hero-marketplace .hero-title::after {
        width: 60px;
        height: 2px;
        bottom: -0.5rem;
    }

    .hero-marketplace .hero-subtitle {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }

    .hero-marketplace .hero-description {
        font-size: 1rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }

    .influencer-marketplace {
        padding: 2rem 0 4rem;
    }

    .influencer-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .influencer-avatar {
        height: 200px;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
    }

    .avatar-placeholder span {
        font-size: 2.5rem;
    }
    
    /* Influencer card button alignment */
    .influencer-action {
        padding: 0 1.25rem 1.25rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-marketplace {
        padding: 3.5rem 0 3rem;
        margin-top: 4rem;
    }

    .hero-marketplace .hero-title {
        font-size: 2.25rem;
    }

    .hero-marketplace .hero-title::after {
        width: 50px;
        height: 2px;
    }

    .hero-marketplace .hero-subtitle {
        font-size: 1.0625rem;
        margin-top: 1.25rem;
    }

    .hero-marketplace .hero-description {
        font-size: 0.9375rem;
        margin-top: 1.25rem;
        padding: 0;
    }

    .influencer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .influencer-avatar {
        height: 180px;
    }
    
    /* Influencer card button alignment */
    .influencer-action {
        padding: 0 1rem 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
