/* =========================
   HOME BUTTON - BOTTOM RIGHT, MINIMAL
   Ultra compact, stays out of the way
   ========================= */
.home-btn-lesson {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;

    padding: 8px;
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.6);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    border-radius: 50%;
    text-decoration: none;

    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);

    transition: all 0.3s ease;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0.6;
}

.home-btn-lesson:hover {
    transform: scale(1.1);
    width: auto;
    padding: 8px 14px;
    gap: 6px;
    border-radius: 50px;
    opacity: 1;
    background: rgba(16, 185, 129, 0.9);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.home-btn-lesson:active {
    transform: scale(1.05);
}

.home-btn-lesson i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.home-btn-lesson:hover i {
    transform: rotate(-10deg);
}

.home-btn-lesson span {
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.home-btn-lesson:hover span {
    max-width: 100px;
    opacity: 1;
    margin-left: 4px;
}

/* Auto-hide on scroll (optional enhancement) */
.home-btn-lesson.scrolled {
    opacity: 0.3;
    transform: scale(0.9);
}

.home-btn-lesson.scrolled:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile - Icon only for compact size */
@media (max-width: 768px) {
    .home-btn-lesson {
        bottom: 16px;
        right: 16px;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
    }

    .home-btn-lesson span {
        display: none;
    }

    .home-btn-lesson i {
        font-size: 1.2rem;
        margin: 0;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .home-btn-lesson {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}