/* Image Fallback Styles for CS2 Services */

/* Service Icons Fallback */
.service-icon {
    background: linear-gradient(45deg, var(--cs2-orange), var(--cs2-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Fallback for missing images */
img[onerror] {
    display: none;
}

/* Service option images with fallback */
.service-option img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-option img:not([src]) {
    display: none;
}

/* Icon fallbacks when images are missing */
.service-option:not(:has(img[src]))::before {
    content: '🎮';
    font-size: 3rem;
    display: block;
    margin: 1rem 0;
}

/* Specific service icons */
.service-option[href*="sr_"]:not(:has(img[src]))::before {
    content: '📦';
}

.service-option[href*="kont_"]:not(:has(img[src]))::before {
    content: '📋';
}

.service-option[href*="slimkes_"]:not(:has(img[src]))::before {
    content: '💰';
}

.service-option[href*="kristalai_"]:not(:has(img[src]))::before {
    content: '💎';
}

/* Header logo fallback */
.logo img:not([src]) {
    display: none;
}

.logo:not(:has(img[src]))::before {
    content: '🎮';
    font-size: 3rem;
    margin-right: 1rem;
}

/* Loading placeholder for images */
img[data-src] {
    background: linear-gradient(45deg, var(--cs2-gray), var(--cs2-light-gray));
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Image loaded state */
img.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
