/* ===================================
   BROWSE PAGE STYLES
   =================================== */

.browse-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 0;
}

.browse-header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Filters */
.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-select {
    padding: 0.875rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-select:hover {
    border-color: var(--border-hover);
}

/* Featured Banner */
.featured-banner {
    margin-bottom: var(--spacing-xl);
}

.featured-banner h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Section Divider */
.section-divider {
    margin: var(--spacing-3xl) 0 var(--spacing-xl);
    padding-top: var(--spacing-3xl);
    border-top: 1px solid var(--border-color);
}

.section-divider h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Developer Grids */
.featured-grid,
.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

/* Developer Card - Fiverr Style */
.developer-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    max-width: 280px;
    display: block;
    cursor: pointer;
}

.developer-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.developer-card.featured-card {
    border-color: var(--accent-primary);
}

.featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
}

/* Card Banner */
.card-banner {
    width: 100%;
    height: 140px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-elevated);
    background: var(--bg-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: -30px;
    left: 1rem;
    z-index: 5;
}

.card-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Developer Info */
.developer-info {
    padding: var(--spacing-md);
    padding-top: calc(var(--spacing-md) + 35px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.developer-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.developer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.developer-username {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0.125rem 0 0 0;
    opacity: 0.85;
}

.developer-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.country-flag {
    font-size: 1rem;
    line-height: 1;
}

.country-name {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.developer-engine {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.developer-bio {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.developer-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.5rem 0;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: var(--border-color);
    font-size: 0.875rem;
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    color: #fbbf24;
    opacity: 0.5;
}

.rating-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.reviews-subtle {
    font-weight: 400;
    opacity: 0.7;
}

/* Card Footer with Price */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
}

.price-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Remove old styles */
.developer-skills {
    display: none;
}

.developer-actions {
    display: none;
}

/* Scrollable wrapper for all talents */
.developers-scroll-wrapper {
    max-height: calc(100vh - 450px);
    overflow-y: auto;
    padding-right: var(--spacing-sm);
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--border-color);
}

.developers-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}

.developers-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--bg-elevated);
    border-radius: 4px;
}

.developers-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.developers-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Browse Page Footer - Compact */
.browse-section ~ .footer {
    padding: var(--spacing-md) 0;
}

.browse-section ~ .footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.browse-section ~ .footer .footer-brand {
    max-width: 100%;
}

.browse-section ~ .footer .footer-description {
    text-align: center;
    line-height: 1.3;
    font-size: 0.6875rem;
    opacity: 0.5;
    margin-top: var(--spacing-xs);
}

.browse-section ~ .footer .footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.browse-section ~ .footer .footer-column h4 {
    font-size: 0.6875rem;
    margin-bottom: 0.25rem;
    opacity: 0.6;
}

.browse-section ~ .footer .footer-column a {
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1.3;
    opacity: 0.5;
}

.browse-section ~ .footer .footer-column a:hover {
    opacity: 0.8;
}

.browse-section ~ .footer .footer-bottom {
    padding-top: var(--spacing-sm);
    font-size: 0.625rem;
    opacity: 0.4;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 968px) {
    .filters {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-box {
        grid-column: 1 / -1;
    }

    .featured-grid,
    .developers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 640px) {
    .filters {
        grid-template-columns: 1fr;
    }
    
    .filter-select {
        width: 100%;
    }

    .featured-grid,
    .developers-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   NAME COLOR & EFFECT ANIMATIONS
   =================================== */

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes glow-pulse {
    0%, 100% { 
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor, 0 0 50px currentColor;
        filter: brightness(1.3);
    }
}

@keyframes name-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
