/* ============================================================================
   FREELANCER DIRECTORY - SELLERS PAGE
   Following ITMZZ Design System Standards
   File: sellers-page.css
   ============================================================================ */

/* Page Container */
#sellers-directory {
    position: relative;
}

/* Page Header */
#sellers-directory .page-header-section {
    text-align: center;
    padding: var(--card-padding) !important;
    margin-bottom: 2rem !important;
    background: var(--gradient-light) !important;
}

#sellers-directory .page-header-section .section-title {
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem !important;
}

#sellers-directory .page-header-section .section-subtitle {
    color: var(--text-secondary) !important;
    max-width: 800px;
    margin: 0 auto !important;
}

/* Search & Filter Controls */
#sellers-directory .form-group label {
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

#sellers-directory .input-group {
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
}

#sellers-directory .search-input {
    flex: 1 !important;
    border-radius: 50px 0 0 50px !important;
    border-right: none !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

#sellers-directory .input-group-btn {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

#sellers-directory .input-group-btn .btn {
    border-radius: 0 50px 50px 0 !important;
    border-left: none !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    min-width: 120px !important;
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

/* Removing hover effect from the search button */
#sellers-directory .input-group-btn .btn:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: inherit !important;
    border-color: inherit !important;
}

/* Talent Cards */
#sellers-directory .freelancer-card {
    margin-bottom: 1.5rem !important;
    transition: var(--transition) !important;
    position: relative !important;
    padding-top: 2.2rem !important;
}

#sellers-directory .freelancer-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Service Count Badge - Circular badge in top-right corner */
#sellers-directory .service-count-badge {
    position: absolute !important;
    top: -15px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
    background: var(--gradient-primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-md) !important;
    z-index: 10 !important;
    transition: var(--transition) !important;
    cursor: help !important;
}

#sellers-directory .freelancer-card:hover .service-count-badge {
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-lg) !important;
}

#sellers-directory .service-count-badge .count-number {
    font-size: 1.5rem !important;
    line-height: 1 !important;
    font-family: var(--font-primary) !important;
}

/* Top Section Layout */
#sellers-directory .freelancer-top-section {
    display: flex !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    margin-bottom: 1rem !important;
}

#sellers-directory .freelancer-main-info {
    display: flex !important;
    gap: 1rem !important;
    flex: 1 !important;
}

#sellers-directory .quick-actions-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    min-width: 140px !important;
}

/* Avatar Section */
#sellers-directory .avatar-section {
    position: relative !important;
    flex-shrink: 0 !important;
}

#sellers-directory .freelancer-avatar {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 3px solid var(--primary-green) !important;
    transition: var(--transition) !important;
}

#sellers-directory .freelancer-avatar:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 0 5px var(--overlay-green-10) !important;
}

/* Online Status Indicator */
#sellers-directory .online-status {
    position: absolute !important;
    bottom: 5px !important;
    right: 5px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
}

#sellers-directory .online-status.online {
    background: var(--accent-success) !important;
}

/* Info Section */
#sellers-directory .info-section {
    flex: 1 !important;
}

/* Name and Rating Row */
#sellers-directory .name-rating-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

#sellers-directory .freelancer-name {
    font-size: 1.25rem !important;
    margin: 0 !important;
}

#sellers-directory .freelancer-name a {
    color: var(--text-primary) !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

#sellers-directory .freelancer-name a:hover {
    color: var(--primary-green) !important;
}

/* Rating Section */
#sellers-directory .rating-section {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

#sellers-directory .stars {
    color: var(--accent-warning) !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

#sellers-directory .rating-text {
    color: var(--text-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Title Badge */
#sellers-directory .freelancer-title {
    margin-bottom: 0.75rem !important;
}

#sellers-directory .title-badge {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Location Row */
#sellers-directory .location-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

#sellers-directory .location-icon {
    color: var(--primary-blue) !important;
    font-size: 1rem !important;
}

#sellers-directory .location-text {
    color: var(--text-muted) !important;
    font-size: 0.875rem !important;
}

/* Key Stats Row */
#sellers-directory .key-stats-row {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap !important;
}

#sellers-directory .stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.5rem !important;
    background: var(--bg-secondary) !important;
    border-radius: 8px !important;
    min-width: 80px !important;
    justify-content: center !important;
}

#sellers-directory .stat-icon {
    color: var(--primary-green) !important;
    font-size: 1rem !important;
}

#sellers-directory .stat-value {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
}

#sellers-directory .stat-label {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Quick Actions */
#sellers-directory .action-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: 100% !important;
    display: inline-block !important;
}

#sellers-directory .save-btn {
    color: var(--text-muted) !important;
    padding: 0.5rem !important;
    border: none !important;
    background: none !important;
    transition: var(--transition) !important;
    width: auto !important;
    display: inline-block !important;
}

#sellers-directory .save-btn:hover {
    color: var(--accent-danger) !important;
    transform: scale(1.1) !important;
}

/* Description Section */
#sellers-directory .description-section {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#sellers-directory .freelancer-description {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#sellers-directory .read-more-btn {
    background: none !important;
    border: none !important;
    color: var(--primary-blue) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: var(--transition) !important;
}

#sellers-directory .read-more-btn:hover {
    color: var(--primary-green) !important;
    text-decoration: underline !important;
}

/* Skills Section */
#sellers-directory .skills-section {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#sellers-directory .skills-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

#sellers-directory .skills-label i {
    color: var(--primary-blue) !important;
}

#sellers-directory .skills-tags {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

#sellers-directory .skill-tag {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 15px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
}

#sellers-directory .skill-tag:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Portfolio Section */
#sellers-directory .portfolio-section {
    margin-bottom: 1rem !important;
}

#sellers-directory .portfolio-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
}

#sellers-directory .portfolio-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}

#sellers-directory .portfolio-label i {
    color: var(--primary-blue) !important;
}

#sellers-directory .view-all-link {
    color: var(--primary-blue) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}

#sellers-directory .view-all-link:hover {
    color: var(--primary-green) !important;
    text-decoration: underline !important;
}

#sellers-directory .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 0.5rem !important;
}

#sellers-directory .portfolio-item {
    position: relative !important;
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: var(--border-radius-sm) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
    border: 2px solid var(--border-color) !important;
}

#sellers-directory .portfolio-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-green) !important;
}

#sellers-directory .portfolio-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#sellers-directory .portfolio-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--overlay-green-30) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: var(--transition) !important;
}

#sellers-directory .portfolio-item:hover .portfolio-overlay {
    opacity: 1 !important;
}

#sellers-directory .portfolio-overlay i {
    color: white !important;
    font-size: 1.25rem !important;
}

/* Bottom Actions */
#sellers-directory .bottom-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--border-color) !important;
}

#sellers-directory .availability-badge {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

#sellers-directory .online-dot {
    color: var(--accent-success) !important;
    font-size: 0.75rem !important;
}

#sellers-directory .action-buttons {
    display: flex !important;
    gap: 0.5rem !important;
}

/* Pagination */
#sellers-directory .pagination-row {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* Tips Section */
#sellers-directory .tips-section {
    background: var(--bg-secondary) !important;
    margin-top: 2rem !important;
}

#sellers-directory .tips-title {
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

#sellers-directory .tips-title i {
    color: var(--accent-warning) !important;
    font-size: 1.5rem !important;
}

#sellers-directory .tip-item {
    text-align: center;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

#sellers-directory .tip-icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 0.75rem !important;
    background: var(--gradient-primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#sellers-directory .tip-icon i {
    color: white !important;
    font-size: 1.5rem !important;
}

#sellers-directory .tip-item strong {
    display: block !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
}

#sellers-directory .tip-item p {
    color: var(--text-muted) !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
}

/* Empty State */
#sellers-directory .empty-state {
    text-align: center;
    padding: 4rem 2rem !important;
    background: var(--bg-secondary) !important;
}

#sellers-directory .empty-state-content {
    max-width: 500px;
    margin: 0 auto !important;
}

#sellers-directory .empty-state-icon {
    font-size: 4rem !important;
    color: var(--border-color) !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

#sellers-directory .empty-state h3 {
    color: var(--text-secondary) !important;
    margin-bottom: 1rem !important;
}

#sellers-directory .empty-state p {
    color: var(--text-muted) !important;
    margin-bottom: 2rem !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    #sellers-directory .freelancer-top-section {
        flex-direction: column !important;
    }

    #sellers-directory .quick-actions-section {
        align-self: flex-end !important;
        min-width: auto !important;
    }

    #sellers-directory .key-stats-row {
        justify-content: center !important;
    }

    #sellers-directory .stat-item {
        flex: 1 !important;
        min-width: 70px !important;
    }
}

@media (max-width: 768px) {
    #sellers-directory .freelancer-main-info {
        flex-direction: column !important;
        text-align: center !important;
    }

    #sellers-directory .avatar-section {
        align-self: center !important;
    }

    #sellers-directory .name-rating-row {
        justify-content: center !important;
    }

    #sellers-directory .location-row {
        justify-content: center !important;
    }

    #sellers-directory .key-stats-row {
        justify-content: space-around !important;
    }

    #sellers-directory .skills-tags {
        justify-content: center !important;
    }

    #sellers-directory .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    }

    #sellers-directory .portfolio-item {
        width: 70px !important;
        height: 70px !important;
    }

    #sellers-directory .bottom-actions {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    #sellers-directory .freelancer-info {
        padding: 0 !important;
        margin-top: 1rem !important;
    }

    #sellers-directory .portfolio-items {
        justify-content: flex-start !important;
    }

    /* Stack buttons vertically only on very small screens */
    #sellers-directory .freelancer-actions {
        flex-direction: column !important;
    }

    #sellers-directory .freelancer-actions .btn {
        width: 100% !important;
    }

    #sellers-directory .freelancer-quick-actions {
        flex-direction: column !important;
    }

    #sellers-directory .stat-item-inline {
        font-size: 0.8rem !important;
    }

    #sellers-directory .service-count-badge {
        width: 40px !important;
        height: 40px !important;
        top: -10px !important;
        right: 10px !important;
    }

    #sellers-directory .service-count-badge .count-number {
        font-size: 1.25rem !important;
    }
}