/* Services Page Styles - ESP Technical Cards */

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.service-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Service Image/Diagram Area */
.service-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 3px solid #dee2e6;
}

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

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

/* Service Placeholder for ESP Diagrams */
.service-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px dashed #dee2e6;
}

.service-placeholder i {
    font-size: 4rem;
    color: #6c757d;
    opacity: 0.7;
}

/* ESP Technical Diagram Styles */
.esp-diagram {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.esp-diagram::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 60%;
    background: linear-gradient(45deg, #dc3545 0%, #fd7e14 50%, #28a745 100%);
    border-radius: 8px;
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.esp-diagram::after {
    content: 'ESP';
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Motor Diagram Styles */
.motor-diagram {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ce93d8;
    border-radius: 8px;
}

.motor-diagram::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 80%;
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    border-radius: 50%;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.motor-diagram::after {
    content: '⚡';
    position: absolute;
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Protector Diagram Styles */
.protector-diagram {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #a5d6a7;
    border-radius: 8px;
}

.protector-diagram::before {
    content: '';
    position: absolute;
    width: 75%;
    height: 70%;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border-radius: 12px;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.protector-diagram::after {
    content: '🛡️';
    position: absolute;
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Technical Service Diagram */
.technical-diagram {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #90caf9;
    border-radius: 8px;
}

.technical-diagram::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 60%;
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
    border-radius: 8px;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.technical-diagram::after {
    content: '⚙️';
    position: absolute;
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Service Badges */
.service-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.badge-discount {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.badge-technical {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Service Content */
.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-category {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #2c3e50;
}

.service-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.95rem;
}

/* Service Features */
.service-features {
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    /*✓*/
    content: '-';
    position: absolute;
    left: 0;
    /*color: #28a745;*/
    font-weight: bold;
    font-size: 1rem;
}

.more-features {
    color: #6c757d;
    font-style: italic;
    font-size: 0.85rem;
}

.more-features::before {
    content: '+';
    color: #007bff;
}

/* Service Meta */
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.old-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.service-duration i {
    color: #007bff;
}

/* Service Actions */
.service-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.btn-service {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/*.btn-primary {*/
/*    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);*/
/*    color: white;*/
/*    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);*/
/*}*/

/*.btn-primary:hover {*/
/*    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);*/
/*    color: white;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);*/
/*}*/

/*.btn-outline-primary {*/
/*    background: transparent;*/
/*    color: #007bff;*/
/*    border-color: #007bff;*/
/*}*/

/*.btn-outline-primary:hover {*/
/*    background: #007bff;*/
/*    color: white;*/
/*    transform: translateY(-2px);*/
/*}*/

/* Technical Service Specific Styles */
.technical-service .service-image {
    background: linear-gradient(135deg, orange 0%, var(--secondary-color) 100%);
}

.technical-service .service-title {
    color: var(--secondary-color);
}

.technical-service .service-meta {
    border-left-color: var(--secondary-color);
}

/* ESP System Specific Styles */
.esp-service .service-image {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.esp-service .service-title {
    color: #e65100;
}

.esp-service .service-meta {
    border-left-color: #e65100;
}

/* Submersible Motor Specific Styles */
.motor-service .service-image {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.motor-service .service-title {
    color: #7b1fa2;
}

.motor-service .service-meta {
    border-left-color: #7b1fa2;
}

/* Protector Specific Styles */
.protector-service .service-image {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.protector-service .service-title {
    color: #2e7d32;
}

.protector-service .service-meta {
    border-left-color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-content {
        padding: 1rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .service-actions {
        flex-direction: column;
    }

    .btn-service {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .service-image {
        height: 150px;
    }

    .service-placeholder i {
        font-size: 3rem;
    }

    .esp-diagram::after {
        font-size: 1.2rem;
    }

    .service-badges {
        top: 10px;
        left: 10px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}

.service-card:nth-child(5) {
    animation-delay: 0.4s;
}

.service-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Hover animations for diagrams */
.esp-diagram:hover::before {
    animation: pulse 1s ease-in-out;
}

.motor-diagram:hover::before {
    animation: pulse 1s ease-in-out;
}

.protector-diagram:hover::before {
    animation: pulse 1s ease-in-out;
}

.technical-diagram:hover::before {
    animation: pulse 1s ease-in-out;
}

/* Badge animations */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Service content animations */
.service-content {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

/* Category Filters Hierarchy Styles */
.category-filters .form-check {
    margin-bottom: 0.5rem;
}

.category-filters .form-check.ms-3 {
    margin-left: 1.5rem !important;
    position: relative;
}

.category-filters .form-check.ms-3::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    width: 0.75rem;
    height: 1px;
    background-color: #dee2e6;
    transform: translateY(-50%);
}

.category-filters .form-check.ms-3::after {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    width: 1px;
    height: 50%;
    background-color: #dee2e6;
}

.category-filters .form-check-label {
    font-size: 0.9rem;
    color: #495057;
    transition: color 0.2s ease;
}

.category-filters .form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 600;
}

.category-filters .form-check.ms-3 .form-check-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.category-filters .form-check.ms-3 .form-check-input:checked + .form-check-label {
    color: #0056b3;
}

/* Hover effects for technical elements */
.technical-service:hover .service-image {
    background: linear-gradient(135deg, orange 0%, var(--secondary-color) 100%);
}

.esp-service:hover .service-image {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc02 100%);
}

.motor-service:hover .service-image {
    background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%);
}

.protector-service:hover .service-image {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}
