/* Shared Back to Home Button Styles */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background 0.2s;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 99999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* Ensure it escapes any containing block */
    transform: translateZ(0);
    will-change: transform;
    /* Create new stacking context to escape parent containers */
    isolation: isolate;
}

.back-to-home:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Mobile: Position relative in header */
@media (max-width: 768px) {
    .back-to-home {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
    }
}

