/* ============================================
   ULTRA-MODERN SERVICE CARDS
   Minimalistic, clean, professional design
   ============================================ */

/* Base card styling */
.service-card-modern {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Light Mode Service Card Modern */
[data-theme="light"] .service-card-modern,
html[data-theme="light"] .service-card-modern,
body[data-theme="light"] .service-card-modern {
    background: var(--light-card-bg-gradient) !important;
    border: 1px solid var(--light-border-default) !important;
    box-shadow: var(--light-shadow-md) !important;
}

.service-card-modern:hover {
    border-color: #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

[data-theme="light"] .service-card-modern:hover,
html[data-theme="light"] .service-card-modern:hover,
body[data-theme="light"] .service-card-modern:hover {
    border-color: var(--light-border-accent) !important;
    box-shadow: var(--light-card-shadow-hover) !important;
}

/* Icon container */
.service-card-modern .icon-container {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card-modern:hover .icon-container {
    background: #f0f9ff;
    transform: scale(1.05);
}

.service-card-modern .icon-container i {
    color: #64748b;
    font-size: 18px;
    transition: color 0.3s ease;
}

.service-card-modern:hover .icon-container i {
    color: #0ea5e9;
}

/* Typography */
.service-card-modern h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.service-card-modern p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Price styling */
.service-card-modern .price-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-card-modern .price-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.service-card-modern .price-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

/* Duration styling */
.service-card-modern .duration-section {
    text-align: right;
}

.service-card-modern .duration-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.service-card-modern .duration-value {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* CTA Button */
.service-card-modern .cta-button {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card-modern .cta-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    text-decoration: none;
}

.service-card-modern .cta-button svg {
    transition: transform 0.3s ease;
}

.service-card-modern .cta-button:hover svg {
    transform: translateX(2px);
}

/* Badge styling */
.service-card-modern .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card-modern .badge.featured {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.service-card-modern .badge.popular {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Animation delays for staggered entrance */
.service-card-modern:nth-child(1) { animation-delay: 0.1s; }
.service-card-modern:nth-child(2) { animation-delay: 0.2s; }
.service-card-modern:nth-child(3) { animation-delay: 0.3s; }
.service-card-modern:nth-child(4) { animation-delay: 0.4s; }
.service-card-modern:nth-child(5) { animation-delay: 0.5s; }
.service-card-modern:nth-child(6) { animation-delay: 0.6s; }
.service-card-modern:nth-child(7) { animation-delay: 0.7s; }
.service-card-modern:nth-child(8) { animation-delay: 0.8s; }

/* Entrance animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-modern {
    animation: cardEntrance 0.6s ease-out both;
}

/* Focus states for accessibility */
.service-card-modern:focus-within {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.service-card-modern .cta-button:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .service-card-modern {
        background: #1e293b;
        border-color: #334155;
    }
    
    .service-card-modern:hover {
        border-color: #475569;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    }
    
    .service-card-modern .icon-container {
        background: #334155;
    }
    
    .service-card-modern:hover .icon-container {
        background: #1e40af;
    }
    
    .service-card-modern h3 {
        color: #f1f5f9;
    }
    
    .service-card-modern p {
        color: #94a3b8;
    }
    
    .service-card-modern .price-value {
        color: #f1f5f9;
    }
    
    .service-card-modern .cta-button {
        background: #334155;
        border-color: #475569;
        color: #cbd5e1;
    }
    
    .service-card-modern .cta-button:hover {
        background: #475569;
        border-color: #64748b;
        color: #f1f5f9;
    }
}

/* Loading state */
.service-card-modern.loading {
    opacity: 0.6;
    pointer-events: none;
}

.service-card-modern.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f1f5f9;
    border-top: 2px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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