/* Placeholder Images for VR Club */

/* Hero Image Placeholder */
.hero-img[src=""],
.hero-img[src*="placeholder"] {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img[src=""]:before,
.hero-img[src*="placeholder"]:before {
    content: "🥽 VR EXPERIENCE";
    color: var(--text-accent);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

/* Feature Images Placeholders */
.real-side img[src=""],
.real-side img[src*="placeholder"] {
    background: linear-gradient(45deg,
        var(--bg-tertiary) 25%,
        transparent 25%,
        transparent 75%,
        var(--bg-tertiary) 75%),
    linear-gradient(45deg,
        var(--bg-tertiary) 25%,
        transparent 25%,
        transparent 75%,
        var(--bg-tertiary) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    position: relative;
}

.real-side img[src=""]:before,
.real-side img[src*="placeholder"]:before {
    content: "🏢 РЕАЛЬНЫЙ МИР";
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

.vr-side img[src=""],
.vr-side img[src*="placeholder"] {
    background: linear-gradient(135deg,
        var(--primary-green) 0%,
        var(--light-green) 50%,
        var(--dark-green) 100%);
    position: relative;
}

.vr-side img[src=""]:before,
.vr-side img[src*="placeholder"]:before {
    content: "🎮 VR МИР";
    color: white;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Game Images Placeholders */
.game-image img[src=""],
.game-image img[src*="placeholder"] {
    background: linear-gradient(45deg,
        var(--bg-tertiary) 0%,
        var(--primary-green) 50%,
        var(--bg-tertiary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img[src=""]:before,
.game-image img[src*="placeholder"]:before {
    content: "🎯 ИГРА";
    color: white;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Specific game placeholders */
.game-card:nth-child(1) .game-image img[src=""]:before { content: "🚀 КОСМОС"; }
.game-card:nth-child(2) .game-image img[src=""]:before { content: "🧟 ЗОМБИ"; }
.game-card:nth-child(3) .game-image img[src=""]:before { content: "🧙 МАГИЯ"; }
.game-card:nth-child(4) .game-image img[src=""]:before { content: "⚔️ БИТВА"; }
.game-card:nth-child(5) .game-image img[src=""]:before { content: "🏎️ ГОНКИ"; }
.game-card:nth-child(6) .game-image img[src=""]:before { content: "🔐 КВЕСТ"; }
.game-card:nth-child(7) .game-image img[src=""]:before { content: "🌊 ОКЕАН"; }
.game-card:nth-child(8) .game-image img[src=""]:before { content: "🗡️ РЫЦАРЬ"; }

/* Animated placeholders */
@keyframes placeholder-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-img[src=""]:before,
.game-image img[src=""]:before,
.real-side img[src=""]:before,
.vr-side img[src=""]:before {
    animation: placeholder-pulse 2s ease-in-out infinite;
}

/* Hover effects for placeholders */
.feature-card:hover .real-side img[src=""]:before,
.feature-card:hover .vr-side img[src=""]:before {
    animation-duration: 0.5s;
}

.game-card:hover .game-image img[src=""]:before {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.3s ease;
}

/* Loading animation for missing images */
img[src=""]:after,
img[src*="placeholder"]:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Error state for broken images */
img[alt]:after {
    content: "📷 " attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    background: var(--bg-secondary);
    padding: 10px;
    border-radius: 5px;
    border: 1px dashed var(--text-secondary);
    max-width: 80%;
    word-wrap: break-word;
}

/* Light theme adjustments */
.light-theme .real-side img[src=""]:before,
.light-theme .real-side img[src*="placeholder"]:before {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.light-theme .vr-side img[src=""]:before,
.light-theme .vr-side img[src*="placeholder"]:before {
    background: rgba(1, 65, 12, 0.8);
}

.light-theme img[alt]:after {
    background: var(--bg-primary);
    border-color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-img[src=""]:before,
    .hero-img[src*="placeholder"]:before {
        font-size: 1rem;
    }

    .real-side img[src=""]:before,
    .real-side img[src*="placeholder"]:before,
    .vr-side img[src=""]:before,
    .vr-side img[src*="placeholder"]:before {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .game-image img[src=""]:before,
    .game-image img[src*="placeholder"]:before {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-img[src=""]:before,
    .hero-img[src*="placeholder"]:before {
        font-size: 0.8rem;
    }

    .real-side img[src=""]:before,
    .real-side img[src*="placeholder"]:before,
    .vr-side img[src=""]:before,
    .vr-side img[src*="placeholder"]:before {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}
