/**
 * Sellers Section Styles
 * 
 * @package Strongbody_Theme
 */

/* Sellers Section Base Styles */
.sellers-section {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.seller-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.seller-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--warning-color);
}

.seller-image {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--warning-color) 0%, #ff8a00 100%);
}

.seller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.seller-card:hover .seller-image img {
    transform: scale(1.05);
}

.seller-card-body {
    padding: 20px;
}

.seller-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
}

.placeholder-icon {
    font-size: 2.5rem;
    font-weight: bold;
}

.services-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 193, 7, 0.95);
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.seller-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-category {
    background: var(--warning-color);
    color: #333;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.seller-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.seller-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.seller-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.seller-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.seller-verification {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.verification-badge {
    background: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.seller-join-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
}

/* Sellers CTA Styles */
.sellers-cta {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sellers-section {
        padding: 60px 0;
    }
    
    .sellers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seller-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .seller-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .seller-verification {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .seller-join-date {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .sellers-section {
        padding: 40px 0;
    }
    
    .seller-image {
        height: 120px;
    }
    
    .seller-title {
        font-size: 1.1rem;
    }
    
    .services-count-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .sellers-section {
        background: var(--bg-primary);
        color: var(--text-light);
    }
    
    .seller-card {
        background: var(--bg-dark-secondary);
        border-color: var(--border-color-dark);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .seller-card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
    
    .seller-title {
        color: var(--text-light);
    }
    
    .seller-excerpt {
        color: var(--text-muted);
    }
    
    .seller-stats {
        color: var(--text-muted);
    }
    
    .seller-date {
        color: var(--text-muted);
    }
    
    .seller-verification {
        border-top-color: var(--border-color-dark);
        color: var(--text-muted);
    }
    
    .seller-join-date {
        color: var(--text-muted);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .seller-card {
        border-width: 2px;
        border-color: var(--text-primary);
    }
    
    .meta-category {
        border: 2px solid var(--text-primary);
    }
    
    .verification-badge {
        border: 2px solid var(--success-color);
    }
    
    .services-count-badge {
        border: 2px solid var(--warning-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .seller-card,
    .seller-image img,
    .cta-button,
    .cta-arrow {
        transition: none;
    }
    
    .seller-card:hover {
        transform: none;
    }
    
    .seller-card:hover .seller-image img {
        transform: none;
    }
}
