/* ===============================================
   MOBILE ENHANCEMENTS - MINIMAL VERSION
   Only essential features, no design changes
   =============================================== */

/* ================= SCROLL TO TOP BUTTON ================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff8c42;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.scroll-to-top i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #ff6b1a;
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ================= MOBILE UTILITY CLASSES ================= */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* ================= SAFE AREA INSETS (IPHONE NOTCH) ================= */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .navbar,
        .footer {
            padding-left: max(20px, env(safe-area-inset-left));
            padding-right: max(20px, env(safe-area-inset-right));
        }

        .nav-links.active {
            padding-bottom: max(20px, env(safe-area-inset-bottom));
        }
    }
}

/* ================= LOADING SPINNER (OPTIONAL) ================= */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff8c42;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= SMOOTH SCROLLING ================= */
html {
    scroll-behavior: smooth;
}

/* ================= PREVENT TEXT SELECTION ON BUTTONS (MOBILE) ================= */
@media (max-width: 768px) {
    button,
    .btn-primary,
    .btn-secondary,
    .nav-btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}