/* ── Login Streak — bouton flottant + modal récompense ──────────────────── */

/* Bouton rond 🔥 en haut à droite du menu */
.login-streak-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #e67e22;
    background: #fff3e0;
    color: #c0392b;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    line-height: 1;
    padding: 0;
}

.login-streak-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.55);
}

.login-streak-btn.pulse {
    animation: streakPulse 1.4s ease-in-out infinite;
}

@keyframes streakPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(230, 126, 34, 0.18), 0 2px 8px rgba(230, 126, 34, 0.4);
    }
}

.login-streak-fire {
    font-size: 1.15rem;
    line-height: 1;
}

.login-streak-num {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

/* Bouton complété (J14 done) */
.login-streak-btn.done {
    border-color: #f1c40f;
    background: #fffde7;
    color: #b7950b;
    animation: none;
}

/* ── Modal — liste complète des 14 récompenses ───────────────────────────── */
.login-streak-modal-box {
    max-width: min(500px, 96vw);
    width: 100%;
    padding: 20px 16px 16px;
    text-align: left;
}

.login-streak-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.login-streak-modal-fire {
    font-size: 1.6rem;
}

.login-streak-modal-box h2 {
    font-size: 1.15rem;
    margin: 0;
    text-align: center;
}

/* Liste horizontale scrollable */
.lsr-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #f39c12 #f5f5f5;
}

.lsr-list::-webkit-scrollbar {
    height: 5px;
}

.lsr-list::-webkit-scrollbar-thumb {
    background: #f39c12;
    border-radius: 4px;
}

.lsr-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

/* Carte verticale pour chaque jour */
.lsr-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 10px 7px 8px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--bg-card, #f8f8f8);
    min-width: 76px;
    max-width: 88px;
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: center;
    transition: background 0.15s;
}

.lsr-row.claimed {
    background: #f0fdf4;
    border-color: #d1fae5;
    opacity: 0.75;
}

.lsr-row.current {
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
    border-color: #f0a040;
    box-shadow: 0 2px 8px rgba(240, 160, 64, 0.3);
}

.lsr-row.locked {
    opacity: 0.5;
}

.lsr-day {
    font-size: 0.65rem;
    font-weight: 800;
    color: #999;
    text-align: center;
    line-height: 1;
}

.lsr-row.current .lsr-day {
    color: #e67e22;
}

.lsr-icon {
    font-size: 1.4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.lsr-ball-icon {
    width: 32px;
    height: 32px;
    image-rendering: auto;
    display: block;
    margin: 0 auto;
}

.lsr-charizard-icon {
    width: 40px;
    height: 40px;
    image-rendering: auto;
    display: block;
    margin: 0 auto;
}

.lsr-label {
    font-size: 0.63rem;
    font-weight: 600;
    color: var(--text, #333);
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
    flex: 1;
}

.lsr-status {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.lsr-claim-btn {
    padding: 4px 7px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 2px 0 #c0392b;
    transition: transform 0.1s, box-shadow 0.1s;
    flex-shrink: 0;
    width: 100%;
}

.lsr-claim-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #c0392b;
}

.lsr-claim-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #c0392b;
}

/* CTA Google pour utilisateurs anonymes */
.lsr-google-btn {
    background: linear-gradient(135deg, #4285F4, #1a73e8);
    box-shadow: 0 2px 0 #1557b0;
}

.lsr-google-btn:hover {
    box-shadow: 0 3px 0 #1557b0;
}

.lsr-google-btn:active {
    box-shadow: 0 1px 0 #1557b0;
}

/* Description pour utilisateurs anonymes */
.lsr-anon-desc {
    text-align: center;
    font-size: 0.82rem;
    color: #e67e22;
    margin: 0 0 8px;
    padding: 6px 12px;
    background: rgba(230, 126, 34, 0.08);
    border-radius: 8px;
}

/* ── Barre de titre — search input ──────────────────────────────────────── */
.title-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.title-search-input:focus {
    border-color: #f39c12;
}

[data-theme="dark"] .login-streak-btn {
    background: #2d1a00;
    border-color: #e67e22;
    color: #f39c12;
}

[data-theme="dark"] .login-streak-reward-display {
    background: linear-gradient(135deg, #2d1a00, #3a2200);
    border-color: #f39c12;
}

[data-theme="dark"] .title-search-input {
    background: #2a2a2a;
    border-color: #444;
    color: #eee;
}