/* Services Page Styles */

/* Loading States */
#services-loading {
    position: relative;
    z-index: 10;
}

#services-content {
    transition: opacity 0.3s ease;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
}

.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Service Cards */
.service-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
}

.rating {
    color: #ffc107;
}

.rating .far {
    color: #dee2e6;
}

/* Service Footer */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

/* Price Section */
.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #198754;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.price-currency {
    font-size: 0.875rem;
    color: #198754;
    font-weight: 500;
    opacity: 0.8;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-favorite {
    width: 36px;
    height: 36px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-favorite:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
    transform: scale(1.05);
}

.btn-favorite.active {
    border-color: #dc3545;
    background: #dc3545;
    color: white;
}

.btn-view {
    padding: 8px 16px;
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-view:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    text-decoration: none;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filter-sidebar .form-control,
.filter-sidebar .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-sidebar .form-control:focus,
.filter-sidebar .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Pagination */
.pagination-custom {
    margin: 0;
    gap: 8px;
}

.pagination-custom .page-item {
    margin: 0;
}

.pagination-custom .page-link {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    color: #495057;
    font-weight: 500;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination-custom .page-link:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.pagination-custom .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.pagination-custom .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .filter-sidebar {
        margin-bottom: 2rem;
    }
    
    .service-image {
        height: 150px;
    }
    
    /* Mobile Pagination */
    .pagination-custom {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-custom .page-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Mobile Service Cards */
    .service-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .price-section {
        align-items: center;
        text-align: center;
    }
    
    .action-buttons {
        justify-content: center;
        gap: 12px;
    }
    
    .btn-view {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .btn-favorite {
        width: 40px;
        height: 40px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Smooth transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
