﻿/* Global mobile styles (App Experience) */

:root {
    --mobile-nav-height: 84px;
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-bottom: var(--mobile-nav-height);
        background-color: var(--4win-bg);
        -webkit-tap-highlight-color: transparent;
    }

    .navbar {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--mobile-nav-height);
        background: #ffffff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        border-top: 1px solid var(--4win-border);
        box-shadow: 0 -8px 22px rgba(17, 24, 39, 0.08);
        transform: none !important;
        transition: none !important;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-item,
    .mobile-nav-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--4win-text-muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.01em;
        transition: color 0.2s;
        flex: 1 1 25%;
        min-width: 0;
        height: 100%;
        gap: 4px;
        border: 0;
        background: transparent;
        padding: 8px 6px;
        line-height: 1.1;
        cursor: pointer;
    }

    .mobile-nav-item i,
    .mobile-nav-item svg,
    .mobile-nav-button i,
    .mobile-nav-button svg {
        width: 22px;
        height: 22px;
        margin-bottom: 0;
    }

    .mobile-nav-item span,
    .mobile-nav-button span {
        white-space: nowrap;
    }

    .mobile-nav-item.active,
    .mobile-nav-button.active {
        color: var(--4win-primary);
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-4win {
        border-radius: 20px;
        margin-bottom: 15px;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0 !important;
        opacity: 0;
        transition: opacity 0.3s ease;
        width: 100%;
    }

    .modal-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .modal-4win {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 32px 32px 0 0 !important;
        max-height: 92vh;
        overflow-y: auto;
        overflow-x: hidden;
        border: none;
        display: block !important;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        margin-bottom: 0 !important;
    }

    .modal-overlay.active .modal-4win {
        transform: translateY(0);
    }

    .modal-handle {
        display: block;
        width: 60px;
        height: 5px;
        background-color: #CBD5E0;
        margin: 15px auto 5px;
    }

    .modal-left {
        display: none !important;
    }

    .modal-right {
        padding: 25px 24px 40px 24px !important;
        text-align: left;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        background: transparent;
        color: #ADB5BD;
        font-size: 24px;
    }

    h2 {
        font-size: 24px !important;
        font-weight: 800 !important;
        margin-top: 15px;
        margin-bottom: 10px !important;
        text-align: center;
    }

    .modal-footer-mobile {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .btn-modal-cancel {
        flex: 1;
        background: #F8F9FA;
        color: #1a1a1a;
        font-weight: 700;
        border: none;
        border-radius: 12px;
        padding: 16px;
    }

    .btn-reg-submit {
        flex: 2;
        margin-top: 0 !important;
        padding: 16px !important;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}
