/* Designer Grid Styles - Modern Upwork-like Design */
.designer-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Grid Filter/Header */
.designer-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.grid-title {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin: 0;
    letter-spacing: -0.5px;
}

.grid-stats {
    font-size: 16px;
    color: #6b7280;
}

.designer-count {
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* Filter Controls */
.grid-filter-controls {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #000;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: #000;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filter-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reset-btn {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

.reset-btn:hover {
    background: #f9fafb;
    border-color: #374151;
}

/* Grid Layout */
.designer-grid-layout {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.designer-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.designer-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.designer-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.designer-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Designer Card */
.designer-grid-item {
    transition: transform 0.3s;
}

.designer-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.designer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.designer-card-header {
    padding: 25px 25px 15px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.designer-avatar-link {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.designer-avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.designer-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge.verified {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.badge.top-rated {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.designer-card-body {
    padding: 0 25px 20px;
    flex: 1;
}

.designer-name {
    margin: 0 0 8px 0;
    text-align: center;
}

.designer-name a {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: color 0.2s;
}

.designer-name a:hover {
    color: #dc2626;
}

.designer-title {
    margin: 0 0 20px 0;
    color: #dc2626;
    font-weight: 600;
    text-align: center;
    font-size: 15px;
}

.designer-location,
.designer-experience,
.designer-projects {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 14px;
}

.location-icon,
.exp-icon,
.projects-icon {
    color: #9ca3af;
    font-size: 16px;
}

.designer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

.skill-tag.more {
    background: #000;
    color: white;
    border-color: #000;
}

.designer-rating {
    margin: 20px 0;
    text-align: center;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: #d1d5db;
    font-size: 18px;
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-score {
    font-weight: 700;
    margin-left: 8px;
    color: #000;
}

.rating-count {
    color: #6b7280;
    font-size: 14px;
}

.designer-member-since {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 15px;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
}

/* Designer Card Footer - UPDATED: Single button, no hire button */
.designer-card-footer {
    padding: 20px 25px;
    border-top: 1px solid #f3f4f6;
}

.view-profile-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #000;
    color: white;
    border: 2px solid #000;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.view-profile-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Grid Footer & Load More */
.designer-grid-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.load-more-designers {
    background: #000;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid #000;
    min-width: 200px;
}

.load-more-designers:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.load-more-designers:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.designer-grid-empty {
    text-align: center;
    padding: 60px 30px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    font-size: 18px;
    margin: 30px 0;
}

/* Search Results Info */
.search-results-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-weight: 600;
    color: #0369a1;
}

.clear-search {
    background: none;
    border: 1px solid #0369a1;
    color: #0369a1;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.clear-search:hover {
    background: #0369a1;
    color: white;
}

/* Grid Styles */
.designer-grid-style-modern .designer-card {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.designer-grid-style-classic .designer-card {
    border-radius: 0;
    border: 2px solid #000;
}

.designer-grid-style-minimal .designer-card {
    background: #f9fafb;
    border: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .designer-grid-cols-4,
    .designer-grid-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .designer-grid-cols-3,
    .designer-grid-cols-4,
    .designer-grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .designer-grid-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }
    
    .designer-grid-cols-2,
    .designer-grid-cols-3,
    .designer-grid-cols-4,
    .designer-grid-cols-5 {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .designer-card-footer {
        flex-direction: column;
    }
    
    .view-profile-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .designer-grid-container {
        padding: 20px 15px;
    }
    
    .grid-title {
        font-size: 24px;
    }
    
    .designer-avatar-link {
        width: 80px;
        height: 80px;
    }
    
    .designer-name a {
        font-size: 18px;
    }
}