/**
 * Services Section Styles
 * 
 * @package Strongbody_Theme
 */

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

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

.service-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);
}

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

.service-image {
    height: 140px;
    position: relative;
    overflow: hidden;
}

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

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

.service-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.placeholder-icon {
    font-size: 2rem;
}

.price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

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

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

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

.service-rating {
    color: var(--warning-color);
    font-size: 0.85rem;
}

.service-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.service-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: var(--primary-color);
}

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

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

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

.service-seller .seller-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
}

/* Services CTA Styles */
.services-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) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-meta {
        flex-wrap: wrap;
    }
    
    .service-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 0;
    }
    
    .service-image {
        height: 120px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
        border-color: var(--text-primary);
    }
    
    .meta-category {
        border: 2px solid var(--text-primary);
    }
}

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