/**
 * Service Detail Section Component Styles
 * Detailed service page component with description and benefits
 */

/* Service Detail Section Base */
.service-detail-section {
    position: relative;
}

/* Service Detail Title */
.service-detail-title {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-detail-section.bg-gray-900 .service-detail-title {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service Description Animations */
.service-description {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.service-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service Description Prose Styling */
.service-description .prose,
.service-detail-section .prose {
    color: inherit;
}

.service-description .prose p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-description .prose p:last-child {
    margin-bottom: 0;
}

.service-description .prose h3,
.service-description .prose h4 {
    color: inherit;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-description .prose ul,
.service-description .prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.service-description .prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Service Image Overlay Effect */
.service-image .relative::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image:hover .relative::after {
    opacity: 1;
}

/* Benefits Section */
.benefit-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }
.benefit-item:nth-child(5) { animation-delay: 0.5s; }
.benefit-item:nth-child(6) { animation-delay: 0.6s; }
.benefit-item:nth-child(7) { animation-delay: 0.7s; }
.benefit-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Benefit Bullet Points */
.benefit-item .w-2.h-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.benefit-item:hover .w-2.h-2 {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

/* Benefit Item Hover Effect */
.benefit-item {
    padding: 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    margin: -0.5rem;
}

.benefit-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(8px);
}

.service-detail-section.bg-gray-900 .benefit-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Benefits Container */
.service-detail-section .space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Additional Content Styling */
.service-detail-section .prose.text-center {
    text-align: center;
}

.service-detail-section .prose.text-center p {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-description,
    .service-image {
        animation: fadeInUp 0.6s ease-out forwards;
        animation-delay: 0.2s;
    }
}

@media (max-width: 768px) {
    .service-detail-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .service-image .h-96 {
        height: 16rem;
    }
    
    .benefit-item {
        margin: -0.25rem;
        padding: 0.25rem;
    }
    
    .benefit-item .space-x-4 {
        gap: 0.75rem;
    }
    
    .service-description .prose p {
        font-size: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .service-description,
    .service-image,
    .benefit-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .service-image .relative::after,
    .benefit-item .w-2.h-2,
    .benefit-item {
        transition: none;
    }
}

/* Focus Visible for Better Accessibility */
.service-detail-section a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-detail-title {
        -webkit-text-fill-color: #1f2937;
        color: #1f2937;
    }
    
    .service-detail-section.bg-gray-900 .service-detail-title {
        -webkit-text-fill-color: #f3f4f6;
        color: #f3f4f6;
    }
    
    .benefit-item .w-2.h-2 {
        background: #1f2937;
    }
    
    .service-detail-section.bg-gray-900 .benefit-item .w-2.h-2 {
        background: #f3f4f6;
    }
}

/* Print Styles */
@media print {
    .service-detail-section {
        background: white !important;
        color: black !important;
    }
    
    .service-image {
        break-inside: avoid;
    }
    
    .benefit-item {
        break-inside: avoid;
        margin-bottom: 0.5rem;
    }
    
    .benefit-item .w-2.h-2 {
        background: black !important;
    }
}

/* Loading State */
.service-detail-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.service-detail-section.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
.service-description::-webkit-scrollbar,
.service-detail-section .prose::-webkit-scrollbar {
    width: 6px;
}

.service-description::-webkit-scrollbar-track,
.service-detail-section .prose::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.service-description::-webkit-scrollbar-thumb,
.service-detail-section .prose::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.service-description::-webkit-scrollbar-thumb:hover,
.service-detail-section .prose::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Benefits Section Animation */
.service-detail-section .space-y-6 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

/* Smooth Transitions for Interactive Elements */
.benefit-item h4 {
    transition: color 0.3s ease;
}

.benefit-item:hover h4 {
    color: #3b82f6;
}

.service-detail-section.bg-gray-900 .benefit-item:hover h4 {
    color: #60a5fa;
}