html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ⭐ COLORI STELLE IN BASE AL LIVELLO */
.star {
    font-size: 34px;
    margin: 0 3px;
}

    /* 1 stella → bronzo */
    .star:nth-child(1):only-child {
        color: #cd7f32;
    }

    /* 2 stelle → argento */
    .star:nth-child(1):nth-last-child(2),
    .star:nth-child(2):nth-last-child(1) {
        color: #c0c0c0;
    }

    /* 3 stelle → oro */
    .star:nth-child(1):nth-last-child(3),
    .star:nth-child(2):nth-last-child(2),
    .star:nth-child(3):nth-last-child(1) {
        color: #ffd700;
    }

    /* 4 stelle → oro potenziato */
    .star:nth-child(1):nth-last-child(4),
    .star:nth-child(2):nth-last-child(3),
    .star:nth-child(3):nth-last-child(2),
    .star:nth-child(4):nth-last-child(1) {
        color: #ffcc00;
    }

    /* 5 stelle → ELITE (azzurro brillante) */
    .star:nth-child(1):nth-last-child(5),
    .star:nth-child(2):nth-last-child(4),
    .star:nth-child(3):nth-last-child(3),
    .star:nth-child(4):nth-last-child(2),
    .star:nth-child(5):nth-last-child(1) {
        color: #00eaff;
    }

/* BADGE ELITE TEAM */
.elite-badge {
    background: linear-gradient(90deg, #00eaff, #0077ff);
    color: white;
    font-weight: bold;
    padding: 6px 14px;
    display: inline-block;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
}


/*MONETE*/

.player-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
    font-family: "Roboto", Arial, sans-serif;
}

/* MONETE */
.player-coins {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #f0b400;
    background: #111;
    color: #f8d24b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .player-coins .icon-coin {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        background: radial-gradient(circle at 30% 30%, #fff7c0 0, #f8d24b 40%, #b8860b 100%);
        border: 1px solid #f0b400;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    }

    .player-coins .coins-label {
        font-size: 11px;
        margin-right: 6px;
        opacity: 0.8;
    }

    .player-coins .coins-value {
        font-weight: 700;
        font-size: 13px;
    }

/* STELLE */


/* ============================
   BOTTONI SPORTSCUP 3D STYLE
   ============================ */

.btn-fc {
    display: inline-block;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); /* effetto 3D */
}

    /* Effetto pressione */
    .btn-fc:active {
        top: 2px;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    }

    /* Hover */
    .btn-fc:hover {
        filter: brightness(1.1);
    }

/* Giallo (Sfida) */
.btn-fc-warning {
    background: linear-gradient(to bottom, #f8d24b 0%, #d19a00 100%);
    border-color: #b8860b;
    color: #000;
}

/* Rosso (Inbox) */
.btn-fc-danger {
    background: linear-gradient(to bottom, #ff4d4d 0%, #a80000 100%);
    border-color: #7a0000;
}

/* Blu (Calendario) */
.btn-fc-primary {
    background: linear-gradient(to bottom, #3fa9f5 0%, #004c9a 100%);
    border-color: #003d7a;
}

/* Verde (Classifica) */
.btn-fc-success {
    background: linear-gradient(to bottom, #00c853 0%, #008c44 100%);
    border-color: #006b35;
}

/* Grigio (Richieste Inviate) */
.btn-fc-secondary {
    background: linear-gradient(to bottom, #777 0%, #333 100%);
    border-color: #222;
}

/* Chiaro (Svincolo) */
.btn-fc-light {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ccc 100%);
    border-color: #aaa;
    color: #222;
}

/* Full width */
.btn-fc-block {
    width: 100%;
    text-align: center;
}
/* Login */
.login-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* LOGO */
.main-logo img {
    width: 160px;
    height: auto;
    margin-bottom: 30px;
}

/* TITOLO */
.login-title {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #222;
}

/* GRID */
.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

/* CARD */
.login-card {
    border: 2px solid #e0e0e0;
    padding: 35px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
    cursor: pointer;
}

    .login-card:hover {
        border-color: #00a651;
        transform: translateY(-6px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

/* ICONA TONDA */
.icon-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: #f5f5f5;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-circle.team {
        border-color: #00a651;
    }

    .icon-circle img {
        width: 70%;
        height: 70%;
        object-fit: contain;
    }

/* DESCRIZIONE */
.login-description {
    font-size: 15px;
    color: #555;
    margin: 15px 0 25px;
}

/* BOTTONI 3D */
.btn-fc {
    display: inline-block;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

    .btn-fc:active {
        top: 2px;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    }

.btn-fc-block {
    width: 100%;
    text-align: center;
}

/* COLORI */
.btn-fc-primary {
    background: linear-gradient(to bottom, #3fa9f5 0%, #004c9a 100%);
    border-color: #003d7a;
}

.btn-fc-success {
    background: linear-gradient(to bottom, #00c853 0%, #008c44 100%);
    border-color: #006b35;
}
/*Login*/

.login-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* LOGO */
.main-logo img {
    width: 160px;
    height: auto;
    margin-bottom: 30px;
}

/* TITOLO */
.login-title {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #222;
}

/* GRID */
.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

/* CARD */
.login-card {
    border: 2px solid #e0e0e0;
    padding: 35px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
    cursor: pointer;
}

    .login-card:hover {
        border-color: #00a651;
        transform: translateY(-6px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

/* ICONA TONDA */
.icon-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: #f5f5f5;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-circle.team {
        border-color: #00a651;
    }

    .icon-circle img {
        width: 70%;
        height: 70%;
        object-fit: contain;
    }

/* DESCRIZIONE */
.login-description {
    font-size: 15px;
    color: #555;
    margin: 15px 0 25px;
}

/* BOTTONI 3D */
.btn-fc {
    display: inline-block;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

    .btn-fc:active {
        top: 2px;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    }

.btn-fc-block {
    width: 100%;
    text-align: center;
}

/* COLORI */
.btn-fc-primary {
    background: linear-gradient(to bottom, #3fa9f5 0%, #004c9a 100%);
    border-color: #003d7a;
}

.btn-fc-success {
    background: linear-gradient(to bottom, #00c853 0%, #008c44 100%);
    border-color: #006b35;
}

.register-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* LOGO */
.main-logo img {
    width: 160px;
    height: auto;
    margin-bottom: 30px;
}

/* TITOLO */
.register-title {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #222;
}

.register-subtitle {
    font-size: 17px;
    color: #666;
    margin-bottom: 40px;
}

/* GRID */
.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

/* CARD */
.register-card {
    border: 2px solid #e0e0e0;
    padding: 35px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
    cursor: pointer;
}

    .register-card:hover {
        border-color: #00a651;
        transform: translateY(-6px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

/* ICONA TONDA */
.icon-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: #f5f5f5;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-circle.team {
        border-color: #00a651;
    }

    .icon-circle img {
        width: 70%;
        height: 70%;
        object-fit: contain;
    }

/* DESCRIZIONE */
.register-description {
    font-size: 15px;
    color: #555;
    margin: 15px 0 25px;
}

/* BOTTONI 3D */
.btn-fc {
    display: inline-block;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

    .btn-fc:active {
        top: 2px;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    }

.btn-fc-block {
    width: 100%;
    text-align: center;
}

/* COLORI */
.btn-fc-primary {
    background: linear-gradient(to bottom, #3fa9f5 0%, #004c9a 100%);
    border-color: #003d7a;
}

.btn-fc-success {
    background: linear-gradient(to bottom, #00c853 0%, #008c44 100%);
    border-color: #006b35;
}

/*Sfida Notifiche */
/* SEZIONE ORIZZONTALE */
.hz-section {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TITOLO A SINISTRA */
.hz-title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
}

/* BOTTONI A DESTRA */
.hz-buttons {
    display: flex;
    gap: 8px;
}

/* BOTTONI MINI */
.btn-mini {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    color: white;
}

/* COLORI */
.blue { background:#007bff; }
.grey { background:#6c757d; }
.red { background:#dc3545; }
.light { background:#f8f9fa; color:#333; border:1px solid #ccc; }
.green { background:#28a745; }
.yellow { background:#ffcc00; color:#333; }
.orange { background:#ff8800; }

/*figurina */

.item-player {
    background: url('/images/cards/card-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 2px solid #00ff88; /* bordo stile card */
}

.player-rating-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.stars .star {
    color: gold;
    font-size: 18px;
    text-shadow: 0 0 4px rgba(255,215,0,0.6);
}

.value-badge {
    background: #00ff88;
    color: #000;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 0 6px rgba(0,255,136,0.6);
}
.head-player {
    position: relative;
}

/* ⭐ STELLE A DESTRA, DAL BASSO */
.stars-overlay {
    position: absolute;
    right: 6px;
    bottom: 8px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    gap: 4px;
}

    /* ⭐ Stelle più grandi */
    .stars-overlay span {
        font-size: 26px;
        font-weight: 900;
        text-shadow: 0 0 6px rgba(0,0,0,0.6);
    }

/* ⭐ Colori diversi in base al numero */
.star-0 {
    color: #cd7f32;
}
/* bronzo */
.star-1 {
    color: #c0c0c0;
}
/* argento */
.star-2 {
    color: #ffd700;
}
/* oro */
.star-3 {
    color: #ff8800;
}
/* arancione premium */
.star-4 {
    color: #00ffcc;
}
/* neon verde acqua */
.star-5 {
    color: #ff00ff;
}
/* viola epico */
.value-center {
    position: absolute;
    bottom: 10px; /* più in basso, vicino al bordo della foto */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 136, 0.92);
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 18px;
    color: #000;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0,255,136,0.7);
}
/* footer */
/* Il documento deve occupare tutta l'altezza */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Layout verticale */
body {
    display: flex;
    flex-direction: column;
}

/* Il contenuto si espande e spinge il footer in basso */
main, .content-wrapper, .container, .page-content {
    flex: 1 0 auto;
}

/* FOOTER SEMPRE IN FONDO */
footer {
    flex-shrink: 0;
    min-height: 120px; /* scegli tu */
    padding: 20px 0;
    background: #111;
    color: #fff;
}
