/* Boteco Bangu - Games CSS */

.game-hub-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-image: 
        linear-gradient(to bottom, rgba(26, 2, 2, 0.85), rgba(74, 4, 4, 0.95)),
        url('../assets/img/03.png');
    min-height: 100vh;
    color: white;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #facc15;
}

.game-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #facc15;
}

/* Modal / Overlay for Games */
#game-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #1a0202;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#game-canvas-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 70vh;
    background: #2a0404;
    border: 4px solid #7b1113;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.game-ui {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.game-score {
    font-family: 'Paytone One', sans-serif;
    font-size: 1.5rem;
    color: #facc15;
    text-shadow: 2px 2px 0 #4a0404;
}

/* Memory Game Specifics */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    width: 100%;
    max-width: 400px;
}

.memory-card {
    aspect-ratio: 1/1;
    background: #7b1113;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.memory-card.flipped {
    transform: rotateY(180deg);
    background: #fff;
    color: #7b1113;
}

/* Perfect Pour Specifics */
.beer-glass {
    width: 120px;
    height: 200px;
    border: 5px solid #fff;
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.beer-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #fde047, #eab308);
    transition: height 0.1s linear;
}

.beer-foam {
    position: absolute;
    bottom: 0%;
    left: -10%;
    width: 120%;
    height: 0%;
    background: #fff;
    border-radius: 50% 50% 0 0;
    transition: bottom 0.1s linear, height 0.1s linear;
}

/* Exit Button */
.close-game {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 110;
}

/* Gameplay Animations */
@keyframes shake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-52%) rotate(-3deg); }
    75% { transform: translateX(-48%) rotate(3deg); }
}
.animate-shake {
    animation: shake 0.1s linear 3;
}

/* Social & Input Styles */
#nickname-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-align: center;
    font-size: 1.25rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

#nickname-input:focus {
    outline: none;
    border-color: #facc15;
    background: rgba(255, 255, 255, 0.15);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-social:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}
