/**
 * Service Cards Component
 *
 * Shared styles for service cards used across multiple pages.
 * Glassmorphism design on blue gradient background.
 *
 * @package GFX_Theme
 * @since 1.0.0
 */

/* ========================================
   SERVICES GRID
   ======================================== */

.gfx-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Service card in grid */
.gfx-services-grid .gfx-service-card {
    display: flex;
    flex-direction: column;
}

/* Push the link to bottom of card */
.gfx-services-grid .gfx-service-card .gfx-service-link {
    margin-top: auto;
}

/* ========================================
   SERVICE CARD - GLASSMORPHISM
   ======================================== */

.gfx-service-card {
    background: linear-gradient(135deg, #1E88E5 0%, #0D47A1 100%);
    border-radius: var(--gfx-radius-xl);
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 20px rgba(13, 71, 161, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Glass overlay - main frosted layer */
.gfx-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

/* Glass highlight - top shine effect */
.gfx-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    border-radius: inherit;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    pointer-events: none;
}

.gfx-service-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(13, 71, 161, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.35);
}

.gfx-service-card:hover::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

/* ========================================
   SERVICE ICON
   ======================================== */

.gfx-service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--gfx-white);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.gfx-service-card:hover .gfx-service-icon {
    transform: scale(1.05);
    background: var(--gfx-yellow);
    color: var(--gfx-primary-dark);
}

/* Icon color variations - all white on blue cards */
.gfx-service-icon--primary,
.gfx-service-icon--accent,
.gfx-service-icon--dark {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gfx-white);
}

.gfx-service-card:hover .gfx-service-icon--primary,
.gfx-service-card:hover .gfx-service-icon--accent,
.gfx-service-card:hover .gfx-service-icon--dark {
    background: var(--gfx-yellow);
    color: var(--gfx-primary-dark);
}

/* ========================================
   SERVICE TEXT
   ======================================== */

.gfx-service-title {
    font-size: 0.95rem;
    font-weight: var(--gfx-font-bold);
    color: var(--gfx-white);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.gfx-service-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* ========================================
   SERVICE LINK
   ======================================== */

.gfx-service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--gfx-space-2);
    color: var(--gfx-yellow);
    font-weight: var(--gfx-font-semibold);
    font-size: var(--gfx-text-sm);
    text-decoration: none;
    margin-top: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.gfx-service-card:hover .gfx-service-link {
    opacity: 1;
    transform: translateY(0);
}

.gfx-service-link:hover {
    color: var(--gfx-white);
    gap: var(--gfx-space-3);
}

/* ========================================
   RESPONSIVE - GRID
   ======================================== */

/* 3 columns on large tablet */
@media (max-width: 1199.98px) {
    .gfx-services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 750px;
    }
}

/* 2 columns on medium screens */
@media (max-width: 991.98px) {
    .gfx-services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
}

/* 1 column on mobile */
@media (max-width: 767.98px) {
    .gfx-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 320px;
    }
}

/* ========================================
   RESPONSIVE - CARDS
   ======================================== */

@media (max-width: 767.98px) {
    .gfx-service-card {
        padding: 1rem;
    }

    .gfx-service-icon {
        width: 44px;
        height: 44px;
    }

    .gfx-service-icon i {
        font-size: 1.25rem;
    }

    .gfx-service-title {
        font-size: 0.9rem;
    }

    .gfx-service-description {
        font-size: 0.75rem;
    }
}
