/* PALETTE ESTRATTA DAL LOGO MINERALIA */
:root {
    --deep-green: #334631;    /* Il verde scuro del testo Mineralia */
    --earth-green: #58D68D;   /* Il verde brillante della terra */
    --ocean-blue: #AED6F1;    /* L'azzurro dei mari */
    --mineral-yellow: #F4D03F;
    --mineral-red: #E74C3C;
    --mineral-purple: #9B59B6;
    --mineral-white: #ECF0F1;
    
    /* Colori di sistema */
    --bg-gradient: linear-gradient(135deg, #e0f2f1 0%, #aed6f1 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #2C3E50;
}

/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* HEADER - Ispirato al mockup */
header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 120px; /* Ridotto per eleganza */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav a {
    margin-left: 25px;
    color: var(--deep-green);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--earth-green);
}

/* CONTAINER PRINCIPALE (La "Card" della foto) */
section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 30px; /* Angoli molto arrotondati come in foto */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
}

h2 {
    color: var(--deep-green);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

p.subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* GRID PER I GIOCHI/CONTENUTI */
.grid {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* BOTTONI - Stile "Benvenuto" della foto */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 50px; /* Effetto pillola */
    cursor: pointer;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Colori bottoni basati sui minerali del logo */
.btn-green  { background: var(--earth-green); }
.btn-blue   { background: #3498DB; }
.btn-yellow { background: var(--mineral-yellow); color: #444; }
.btn-red    { background: var(--mineral-red); }
.btn-purple { background: var(--mineral-purple); }

/* CARD PICCOLE (per Account/Amici) */
.card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--earth-green);
}

/* PROFILO */
.account-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.circle-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Stile specifico per il titolo della sezione */
.update-title {
    color: var(--deep-green); /* Verde scuro dal tuo logo */
    font-weight: 800;
    margin-bottom: 30px;
}

/* Il contenitore con il bordo verde sottile della foto */
.update-container {
    border: 1px solid var(--earth-green); /* Verde terra dal tuo logo */
    border-radius: 25px;
    padding: 30px;
    margin: 0 auto;
    max-width: 90%;
}

/* Rimuove i pallini e centra il testo */
.clean-list {
    list-style: none; /* Rimuove i pallini (li) */
    padding: 0;       /* Rimuove lo spazio a sinistra predefinito */
    margin: 0;
    text-align: center; /* Centra perfettamente il testo */
}

.clean-list li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
}

#authButtons {
    display: flex;
    justify-content: flex-end; /* Allinea il contenuto a destra */
    gap: 10px;               /* Aggiunge spazio tra i due bottoni */
    margin-top: 10px;        /* Opzionale: aggiunge spazio sopra i bottoni */
}