/* --- Palette Moderna Western-Chic --- */
:root {
    --primary: #5d4037;      /* Marrone Cuoio */
    --secondary: #d4a373;    /* Sabbia Dorata */
    --accent: #ffca28;       /* Oro Cowboy */
    --bg-light: #fdf8f4;     /* Carta antica chiara */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: var(--bg-light);
    background-image: radial-gradient(#d4a373 0.5px, transparent 0.5px); /* Texture sottile tipo carta */
    background-size: 20px 20px;
    font-family: 'Outfit', 'Segoe UI', sans-serif; /* Un font più moderno */
    color: var(--primary);
    margin: 0;
    padding-bottom: 60px;
}

/* --- Navbar Moderna --- */
.nav-custom {
    background: var(--glass) !important;
    backdrop-filter: blur(10px); /* Effetto vetro */
    border-bottom: 1px solid rgba(93, 64, 55, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Rye', cursive;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

/* --- Container --- */
.container {
    max-width: 600px; /* Ottimizzato per singola colonna */
}

/* --- Card Profilo & Form (Modern Glass) --- */
.profile-card, .card-form, .welcome-banner {
    background: var(--white);
    border: none;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.4);
}

/* --- Input Stilizzati --- */
input[type="text"], input[type="password"], input[type="file"], .form-control {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    transition: 0.3s;
    background: #fcfcfc;
}

input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.2);
    outline: none;
}

/* --- Pulsanti Moderni --- */
.btn-update, .btn-primary, .btn-warning {
    border-radius: 14px;
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-update:hover, .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Card Gallery (Stile Feed Instagram) --- */
.card-outfit {
    border: none;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    overflow: hidden;
}

.img-container {
    position: relative;
    background: #000;
}

.img-container img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

/* Badge Voti sulla foto */
.vote-badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--glass);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer Card */
.card-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nickname-display {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

/* Pulsante Stella (Floating Action Button style) */
.btn-star {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ffb300);
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: 0.3s;
    cursor: pointer;
}

.btn-star:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- Messaggi Alert --- */
.alert {
    border-radius: 16px;
    border: none;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    opacity: 0.6;
    font-weight: 500;
}

/* Animazione Caricamento */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-outfit {
    animation: fadeIn 0.6s ease forwards;
}
/* --- UI Mobile-First --- */
:root {
    --primary: #3e2723;
    --accent: #ffca28;
    --radius: 20px;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
}
body {
    background-color: var(--bg-light);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    /* RIMOSSO position: fixed per permettere lo scroll */
    min-height: 100vh; 
}

.auth-wrapper {
    /* Usiamo min-height invece di height fisso */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 15px; /* Spazio ai lati per il mobile */
    background: radial-gradient(circle at top right, #fff9c4, transparent);
}

.auth-card {
    background: white;
    padding: 30px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    /* Assicuriamoci che non sia troppo compressa */
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Banner Consenso Spuntabile */
.consent-banner {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-banner input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary); /* Colore marrone per la spunta */
}

.consent-text {
    font-size: 0.85rem;
    color: #5d4037;
    line-height: 1.3;
    user-select: none;
}