/* Ana menüye dönüş butonu (anasayfa dışındaki tüm sayfalar) */

/* navbar.css mobilde sabit navbar için body'ye üst boşluk veriyordu; navbar kaldırıldı */
@media (max-width: 991px) {
    body {
        padding-top: 0 !important;
    }
}

.home-return {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(13, 18, 30, 0.72);
    border: 1px solid rgba(148, 197, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #cfe3ff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: gap 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-return i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.home-return-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.25s ease;
}

.home-return:hover,
.home-return:focus-visible {
    gap: 8px;
    color: #ffffff;
    background: rgba(20, 30, 50, 0.9);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.28);
}

.home-return:hover i {
    transform: translateX(-2px);
}

.home-return:hover .home-return-label,
.home-return:focus-visible .home-return-label {
    max-width: 90px;
    opacity: 1;
}

body.light-mode .home-return {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.12);
    color: #1e3a8a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

body.light-mode .home-return:hover {
    background: #ffffff;
    color: #1d4ed8;
}

/* Mobil: sol kenarın dikey ortasına yapışık sekme — modüllerin sol üst öğeleriyle çakışmaz */
@media (max-width: 991px) {
    .home-return {
        top: 50%;
        left: 0;
        z-index: 1040; /* Bootstrap modal/çekmecelerin (1045+) altında kalır */
        width: 22px;
        height: 52px;
        padding: 0 0 0 env(safe-area-inset-left, 0px);
        justify-content: center;
        border-left: none;
        border-radius: 0 999px 999px 0;
        transform: translateY(-50%);
        opacity: 0.85;
    }

    .home-return i {
        font-size: 0.72rem;
    }

    .home-return-label {
        display: none;
    }

    .home-return:hover,
    .home-return:focus-visible,
    .home-return:active {
        gap: 0;
        opacity: 1;
    }
}
