/* Games Section General Styles for Peter Gaming Platform */

/* Games Section */
.games-section {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(152, 251, 152, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ALL Game Cards - PERFECT CENTERING */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(152, 251, 152, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--mint-green-glow) 0%, var(--sky-blue-glow) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.game-card:hover::before {
    opacity: 0.1;
}

/* Game content wrapper for ALL cards - PERFECT CENTERING */
.game-card .game-content,
.game-card .game-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Icon container for ALL cards - PERFECT CENTERING */
.game-card .game-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
    color: var(--mint-green);
    position: relative;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(152, 251, 152, 0.2);
    box-shadow: 0 0 20px var(--mint-green-glow);
}

/* All card titles and descriptions centered */
.game-card h5 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.game-card:hover h5 {
    color: var(--mint-green-dark);
    transform: translateY(-2px);
}

.game-card p {
    color: var(--text-white);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

.game-card:hover p {
    opacity: 1;
    color: var(--sky-blue-dark);
}

/* All buttons centered */
.game-card button {
    margin: 0 auto;
    display: block;
}

/* Game Icons Animation */
.game-card .game-icon i {
    transition: all 0.3s ease;
}

.game-card:hover .game-icon i {
    transform: scale(1.2) rotate(5deg);
}

/* Special hover effects */
.game-card:hover {
    animation: gameCardHover 0.6s ease-out;
}

@keyframes gameCardHover {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(-10px);
    }
}

/* Loading animation for future games */
.game-card.loading {
    pointer-events: none;
}

.game-card.loading .game-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-card {
        padding: 1.5rem 1rem;
        min-height: 200px;
    }

    .game-card .game-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .game-card .game-icon i {
        font-size: 1.5rem !important;
    }

    .games-section .display-4 {
        font-size: 2rem;
    }
}