/* Estilos específicos para o jogo de tarô */

/* Seção da pergunta */
#question-section {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

#question-input {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    border: 2px solid #8A2BE2;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 10px;
}

#question-input::placeholder {
    color: #E6E6FA;
    opacity: 0.8;
}

#question-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#char-counter {
    font-size: 14px;
    margin-bottom: 20px;
    color: #E6E6FA;
}

#start-game-btn {
    background-color: #8A2BE2;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#start-game-btn:hover:not(:disabled) {
    background-color: #9370DB;
    transform: translateY(-2px);
}

#start-game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Faixa das cartas selecionadas */
#selected-cards-bar {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#selected-cards-names {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-name-slot {
    background-color: rgba(138, 43, 226, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #8A2BE2;
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.control-buttons button {
    background-color: #8A2BE2;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.control-buttons button:hover:not(:disabled) {
    background-color: #9370DB;
    transform: translateY(-2px);
}

.control-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#continue-btn {
    background-color: #228B22;
}

#continue-btn:hover:not(:disabled) {
    background-color: #32CD32;
}

/* Grid de cartas */
#card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 15px;
    justify-items: center;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.card-back {
    width: 90px;
    height: 135px;
    background-image: url("../assets/card_back.jpg");
    background-size: cover;
    background-position: center;
    border: 3px solid #8A2BE2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.card-back:hover {
    transform: scale(1.05);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Display da carta selecionada */
#selected-card-display {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #FFD700;
}

#selected-card-display img {
    max-width: 200px;
    height: auto;
    border: 4px solid #FFD700;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 20px;
}

#selected-card-display h3 {
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#selected-card-display p {
    font-size: 1.2em;
    color: #E6E6FA;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Área de mensagens */
#message-area {
    text-align: center;
    font-size: 1.2em;
    color: #FFD700;
    font-weight: bold;
    padding: 15px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    #selected-cards-names {
        flex-direction: column;
    }
    
    .card-name-slot {
        min-width: auto;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .control-buttons button {
        width: 200px;
    }
    
    #card-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .card-back {
        width: 80px;
        height: 120px;
    }
    
    #selected-card-display img {
        max-width: 150px;
    }
    
    #selected-card-display h3 {
        font-size: 1.8em;
    }
    
    #selected-card-display p {
        font-size: 1em;
    }
}

