/* ============================================================================
   SERVICE CARD PREMIUM COMPONENT
   Modern, scalable service card following BEM methodology

   Features:
   - Fully responsive
   - SVG icon support
   - Dark mode compatible
   - Accessibility compliant
   - Independent and modular
   ============================================================================ */

/* Base Card */
.service-card-premium {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
}

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

[data-theme="dark"] .service-card-premium {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
    border-color: rgba(100, 116, 139, 0.3);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Hover State */
.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(148, 163, 184, 0.5);
}

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

[data-theme="dark"] .service-card-premium:hover {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.5),
        0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Icon Container */
.service-card-premium__icon-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-card-premium__icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-premium:hover .service-card-premium__icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.4);
}

.service-card-premium__icon {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Content Area */
.service-card-premium__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Category Badge */
.service-card-premium__category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(245, 158, 11, 0.1);
    color: #ea580c;
    width: fit-content;
}

[data-theme="dark"] .service-card-premium__category {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* Title */
.service-card-premium__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
}

[data-theme="dark"] .service-card-premium__title {
    color: #f1f5f9;
}

/* Description */
.service-card-premium__description {
    font-size: 0.9375rem;
    color: rgba(51, 65, 85, 0.85);
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .service-card-premium__description {
    color: rgba(226, 232, 240, 0.8);
}

/* Features List */
.service-card-premium__features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-card-premium__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(71, 85, 105, 1);
}

[data-theme="dark"] .service-card-premium__feature {
    color: rgba(203, 213, 225, 0.85);
}

.service-card-premium__check {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #10b981;
}

[data-theme="dark"] .service-card-premium__check {
    color: #34d399;
}

/* Meta Information (Price, Duration) */
.service-card-premium__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 0.75rem;
    margin-top: auto;
}

[data-theme="dark"] .service-card-premium__meta {
    background: rgba(15, 23, 42, 0.5);
}

.service-card-premium__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-card-premium__meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(100, 116, 139, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card-premium__meta-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

[data-theme="dark"] .service-card-premium__meta-value {
    color: #f1f5f9;
}

.service-card-premium__meta-unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(100, 116, 139, 1);
}

/* Status Badges */
.service-card-premium__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-card-premium__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card-premium__badge--featured {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.service-card-premium__badge--popular {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

[data-theme="dark"] .service-card-premium__badge--featured {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

[data-theme="dark"] .service-card-premium__badge--popular {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* CTA Button */
.service-card-premium__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    color: #ea580c;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-premium__cta:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .service-card-premium__cta {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.service-card-premium__arrow {
    transition: transform 0.3s ease;
}

.service-card-premium__cta:hover .service-card-premium__arrow {
    transform: translateX(4px);
}

/* Decorative Gradient */
.service-card-premium__gradient {
    position: absolute;
    inset: -50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(245, 158, 11, 0.05) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card-premium:hover .service-card-premium__gradient {
    opacity: 1;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .service-card-premium {
        padding: 1.75rem;
    }

    .service-card-premium__icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .service-card-premium__title {
        font-size: 1.25rem;
    }
}

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

    .service-card-premium__icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .service-card-premium__title {
        font-size: 1.125rem;
    }

    .service-card-premium__meta {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* ============================================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .service-card-premium,
    .service-card-premium__icon-wrapper,
    .service-card-premium__cta,
    .service-card-premium__arrow,
    .service-card-premium__gradient {
        transition: none !important;
    }

    .service-card-premium:hover {
        transform: none !important;
    }

    .service-card-premium:hover .service-card-premium__icon-wrapper {
        transform: none !important;
    }
}

.service-card-premium:focus-within {
    outline: 3px solid rgba(59, 130, 246, 0.6);
    outline-offset: 2px;
}

.service-card-premium__cta:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.6);
    outline-offset: 2px;
}

/* Grid Layout Utilities */
.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid-premium {
        grid-template-columns: repeat(3, 1fr);
    }
}
