/* ========================================
   SCHERMATA INIZIALE - MENU A 2 BLOCCHI
   ======================================== */

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 3rem;
}

/* Titolo principale */
.start-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.8)); }
}

/* Container 2 blocchi */
.menu-blocks-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    height: 500px;
}

/* Singolo blocco menu */
.menu-block {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.menu-block:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* BOX SX - Verde scuro */
.menu-block.deck-selection {
    background: linear-gradient(135deg, #0a3d2e 0%, #1a5c47 100%);
    border-color: #2d8a67;
}

.menu-block.deck-selection:hover {
    border-color: #44ff88;
    box-shadow: 0 20px 60px rgba(68, 255, 136, 0.4);
}

/* BOX DX - Blu scuro */
.menu-block.game-rules {
    background: linear-gradient(135deg, #1a2a4e 0%, #2d4373 100%);
    border-color: #4a6fa5;
}

.menu-block.game-rules:hover {
    border-color: #6b9bff;
    box-shadow: 0 20px 60px rgba(107, 155, 255, 0.4);
}

/* Artwork personaggi */
.menu-block .character-artwork {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease;
}

/* Bruna a SINISTRA */
.menu-block.deck-selection .character-artwork {
    left: -20px;
}

/* Mary-s a DESTRA */
.menu-block.game-rules .character-artwork {
    right: -20px;
}

.menu-block:hover .character-artwork {
    transform: scale(1.05);
}

/* Contenuto testo */
.menu-block-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Testo a destra per BOX SX */
.menu-block.deck-selection .menu-block-content {
    align-items: flex-end;
    text-align: right;
    padding-right: 4rem;
}

/* Testo a sinistra per BOX DX */
.menu-block.game-rules .menu-block-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 4rem;
}

.menu-block-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.menu-block-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.menu-block-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    max-width: 300px;
}

/* Effetto overlay scuro al hover */
.menu-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.menu-block:hover::before {
    opacity: 1;
}

/* Bottone "Inizia Partita" - NASCOSTO DI DEFAULT */
#start-game-btn {
    display: none; /* ← NASCOSTO finché non selezioni un deck */
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: slideUp 0.5s ease forwards;
}

/* Classe per mostrare il bottone DOPO selezione deck */
#start-game-btn.show {
    display: block !important;
}

/* Animazione apparizione bottone */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#start-game-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, #ff8ab3, #d65a85);
}

#start-game-btn:active {
    transform: translateY(-2px);
}

/* NASCOSTO DI DEFAULT - vecchio bottone */
#choose-deck-btn {
    display: none;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 1024px) {
    .menu-blocks-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto;
    }
    
    .menu-block {
        height: 350px;
    }
    
    .start-title {
        font-size: 3rem;
    }
    
    .menu-block-title {
        font-size: 2rem;
    }
    
    .menu-block-content {
        padding: 2rem !important;
    }
    
    .menu-block.deck-selection .menu-block-content,
    .menu-block.game-rules .menu-block-content {
        align-items: center !important;
        text-align: center !important;
    }
    
    .menu-block-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .start-title {
        font-size: 2rem;
    }
    
    .menu-block {
        height: 300px;
    }
    
    .menu-block-title {
        font-size: 1.5rem;
    }
    
    .menu-block-icon {
        font-size: 3rem;
    }
    
    .menu-block-description {
        font-size: 1rem;
    }
    
    .character-artwork {
        opacity: 0.3;
    }
    
    #start-game-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
}
