/* Service Cards Styles */

/* Base Service Card */
.service-card {
    position: relative;
    padding: 40px;
    border-radius: 24px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-fluent-8);
}

.service-card:active {
    transform: translateY(-4px);
}

/* Card Icon */
.service-card__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.service-card__icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

/* Card Title */
.service-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-primary);
}

/* Card Description */
.service-card__description {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Feature Badges */
.service-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Hover Glow Effect */
.service-card__hover-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover .service-card__hover-glow {
    opacity: 1;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Disabled Card State */
.service-card--disabled {
    opacity: 0.7;
    cursor: default;
}

.service-card--disabled:hover {
    transform: none;
    box-shadow: var(--shadow-fluent-4);
}

/* Compact Card (for Coming Soon services) */
.service-card--compact {
    padding: 20px;
    min-height: auto;
}

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

.service-card__compact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card__compact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.service-card__compact-info {
    flex: 1;
    min-width: 0;
}

.service-card__compact-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-text-primary);
}

.service-card__compact-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-card__features--compact {
    gap: 6px;
    margin-bottom: 0;
}

.service-card__features--compact .feature-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* Grid Layout for Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.services-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .services-grid--compact {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .service-card {
        padding: 30px;
    }

    .service-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .service-card__icon svg {
        width: 30px;
        height: 30px;
    }

    .service-card__title {
        font-size: 1.25rem;
    }

    .service-card--compact {
        padding: 15px;
    }

    .service-card__compact-icon {
        width: 40px;
        height: 40px;
    }

    .service-card__compact-icon svg {
        width: 20px;
        height: 20px;
    }

    .service-card__compact-title {
        font-size: 1rem;
    }

    .services-grid,
    .services-grid--compact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Dark Theme Support */
html[data-theme="dark"] .service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .service-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .service-card__title {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .service-card__description,
html[data-theme="dark"] .service-card__compact-desc {
    color: var(--color-text-secondary);
}
