/* Estilos específicos del juego Adivina el Número */

.game-controls {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.difficulty-selector label {
    color: var(--text-secondary);
    font-weight: 500;
}

.difficulty-select {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--surface-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-select:hover {
    border-color: var(--primary-color);
}

.difficulty-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.game-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 100px;
    text-align: center;
}

#attempts {
    color: var(--primary-color);
}

#range {
    color: var(--success);
    font-size: 1.2rem;
}

.game-area {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.game-status {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-status.win {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 2px solid var(--success);
}

.game-status.lose {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.game-status.hidden {
    display: none;
}

.input-section {
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.guess-input {
    flex: 1;
    background: var(--surface-light);
    color: var(--text-primary);
    border: 2px solid var(--surface-light);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.guess-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.guess-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hints-container {
    margin-top: 2rem;
}

.hints-container h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hints-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.hint-item {
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.hint-item:hover {
    background: var(--surface);
    transform: translateX(5px);
}

.hint-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 60px;
    text-align: center;
}

.hint-message {
    color: var(--text-primary);
    font-size: 1rem;
    flex: 1;
    text-align: center;
}

.hint-item.higher .hint-message {
    color: var(--danger);
}

.hint-item.lower .hint-message {
    color: var(--warning);
}

.hint-item.correct .hint-message {
    color: var(--success);
    font-weight: 700;
}

/* Scrollbar personalizado */
.hints-list::-webkit-scrollbar {
    width: 8px;
}

.hints-list::-webkit-scrollbar-track {
    background: var(--surface-light);
    border-radius: 4px;
}

.hints-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.hints-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .game-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .difficulty-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .game-stats {
        justify-content: space-around;
    }

    .input-group {
        flex-direction: column;
    }

    .guess-input {
        width: 100%;
    }
}

