/* public_profile.css - Versione semplificata di profile.css */
:root {
    --bg: #0a0a0a;
    --panel: #1a1a1a;
    --muted: #9be7ff;
    --text: #ffffff;
    --text-secondary: #aaaaaa;
    --border: #222222;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-header h1 {
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.text-secondary {
    color: var(--text-secondary);
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.stats-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.stats-card h3 {
    color: var(--muted);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.stat:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: var(--text);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--muted);
}

.contributions-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.contributions-section h3 {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.console-section {
    margin-bottom: 1.5rem;
}

.console-section:last-child {
    margin-bottom: 0;
}

.console-section h4 {
    color: var(--muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.games-list {
    display: grid;
    gap: 0.5rem;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 4px;
    transition: background-color 0.2s;
    border: 1px solid var(--border);
}

.game-item:hover {
    background: #1a1a1a;
    transform: translateX(5px);
}

.game-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.game-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.code-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

/* Aggiunte per migliorare i bottoni su mobile */
.profile-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .stats-card, .contributions-section {
        padding: 1rem;
    }
    
    .game-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .code-count {
        align-self: flex-start;
    }
    
    /* Bottoni per mobile */
    .profile-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .profile-actions .btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .profile-actions form {
        width: 100%;
    }
    
    /* Per i bottoni già in colonna nella sidebar */
    .user-card .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Riduci la dimensione dell'icona nei bottoni su mobile */
    .profile-actions .btn i,
    .user-card .btn i {
        font-size: 0.85em;
        margin-right: 0.3rem;
    }
}

/* Ottimizzazione per schermi molto piccoli */
@media (max-width: 400px) {
    .profile-actions .btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.8rem;
    }
    
    .profile-actions .btn i {
        font-size: 0.8em;
        margin-right: 0.25rem;
    }
    
    .profile-header h1 {
        font-size: 1.8rem;
    }
    
    .profile-header p {
        font-size: 0.9rem;
    }
}