/**
 * Gig Category Page Styles
 * 
 * @package Marketplace Pro
 * @since 1.0
 */

/* Category Page Layout */
.category-page {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 12px;
    text-align: center;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gig-count {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Subcategories Section */
.subcategories-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.subcategories-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.subcategory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subcategory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #667eea;
    text-decoration: none;
    color: #2c3e50;
}

.subcategory-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.subcategory-card .count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Filters Section */
.gig-filters {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Gigs Grid */
.gigs-section {
    margin-bottom: 3rem;
}

.gigs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.gig-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.gig-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.gig-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gig-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gig-card:hover .gig-image img {
    transform: scale(1.05);
}

.gig-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 2rem;
}

.gig-content {
    padding: 1.5rem;
}

.gig-header {
    margin-bottom: 1rem;
}

.gig-title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.gig-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gig-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.gig-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.gig-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.gig-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.gig-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-details {
    display: flex;
    flex-direction: column;
}

.seller-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.rating-stars i {
    font-size: 0.8rem;
    color: #ffc107;
}

.rating-stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.gig-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.delivery-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-wrapper .page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    text-decoration: none;
}

.pagination-wrapper .page-numbers .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* No Gigs Found */
.no-gigs-found {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.no-gigs-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.no-gigs-found h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.no-gigs-found p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .gigs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gig-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .gig-pricing {
        align-items: flex-start;
        text-align: left;
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-page {
        padding: 1rem 0;
    }
    
    .category-header {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .gig-filters {
        padding: 1.5rem;
    }
    
    .gig-content {
        padding: 1rem;
    }
}

/* ========================================
   Dark Mode Support for Category Page
   ======================================== */
@media (prefers-color-scheme: dark) {
    .category-page {
        background: var(--bg-primary);
    }
    
    .category-header {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }
    
    .gig-count {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .gigs-filters {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .gigs-filters h3 {
        color: var(--text-color);
    }
    
    .filter-group label {
        color: var(--text-color);
    }
    
    .gig-card {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .gig-card:hover {
        border-color: var(--primary-color);
    }
    
    .gig-card h3,
    .gig-card p {
        color: var(--text-color);
    }
    
    .gig-footer {
        border-top-color: var(--border-color);
    }
    
    .seller-name {
        color: var(--text-color);
    }
    
    .price-value {
        color: var(--primary-color);
    }
}