﻿/* ============================================
   mobile-menu.css
   Location: /wwwroot/css/mobile-menu.css
   ============================================ */

/* Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Mobile Menu Container */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: #2d2d2d;
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

    .mobile-nav.active {
        right: 0;
    }

/* ===== HEADER WITH LOGO ===== */
.mobile-nav-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #dc2626;
    flex-shrink: 0;
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

    .mobile-nav-logo img {
        height: 45px;
        width: auto;
        object-fit: contain;
    }

.mobile-nav-logo-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

    .mobile-nav-logo-text span {
        color: #dc2626;
    }

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

    .mobile-nav-close:hover {
        background: #dc2626;
        border-color: #dc2626;
        transform: rotate(90deg);
    }

/* ===== MENU BODY ===== */
.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    background: #2d2d2d;
    -webkit-overflow-scrolling: touch;
}

/* ===== MENU ITEMS ===== */
.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    margin: 4px 0;
    position: relative;
}

    .mobile-nav-item::after {
        content: '›';
        position: absolute;
        right: 25px;
        font-size: 24px;
        color: #666;
        transition: all 0.25s ease;
        font-weight: 300;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:active,
    .mobile-nav-item.active {
        background: linear-gradient(90deg, rgba(220, 38, 38, 0.2) 0%, transparent 100%);
        color: #dc2626;
        border-left-color: #dc2626;
    }

        .mobile-nav-item:hover::after,
        .mobile-nav-item:active::after {
            right: 20px;
            color: #dc2626;
        }

.mobile-nav-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Divider */
.mobile-nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.15) 50%, transparent 95%);
    margin: 15px 20px;
}

/* ===== CONTACT INFO ===== */
.mobile-nav-contact {
    margin: 15px 20px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-contact-title {
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.mobile-nav-contact-item {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .mobile-nav-contact-item:last-child {
        margin-bottom: 0;
    }

    .mobile-nav-contact-item:hover {
        color: white;
    }

    .mobile-nav-contact-item svg {
        width: 18px;
        height: 18px;
        margin-right: 12px;
        color: #dc2626;
        flex-shrink: 0;
    }

/* ===== FOOTER ===== */
.mobile-nav-footer {
    padding: 20px 25px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Social Icons */
.mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

    .mobile-nav-social a {
        width: 46px;
        height: 46px;
        background: #2d2d2d;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: all 0.25s ease;
    }

        .mobile-nav-social a:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
        }

        .mobile-nav-social a.facebook:hover {
            background: #1877f2;
            border-color: #1877f2;
        }

        .mobile-nav-social a.instagram:hover {
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
            border-color: transparent;
        }

        .mobile-nav-social a svg {
            width: 22px;
            height: 22px;
        }

.mobile-nav-copyright {
    color: #666;
    font-size: 12px;
    text-align: center;
    margin: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Extra Large Phones (iPhone Pro Max, Samsung Ultra) */
@media (min-width: 414px) and (max-width: 767px) {
    .mobile-nav {
        max-width: 380px;
    }

    .mobile-nav-logo img {
        height: 50px;
    }

    .mobile-nav-item {
        padding: 20px 28px;
        font-size: 18px;
    }
}

/* Regular Phones */
@media (max-width: 413px) {
    .mobile-nav {
        width: 90%;
        max-width: 320px;
    }

    .mobile-nav-header {
        padding: 15px 18px;
    }

    .mobile-nav-logo img {
        height: 40px;
    }

    .mobile-nav-logo-text {
        font-size: 16px;
    }

    .mobile-nav-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .mobile-nav-item {
        padding: 16px 20px;
        font-size: 16px;
    }

    .mobile-nav-item-icon {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }

    .mobile-nav-contact {
        margin: 12px 15px;
        padding: 15px;
    }

    .mobile-nav-social a {
        width: 42px;
        height: 42px;
    }
}

/* Small Phones */
@media (max-width: 359px) {
    .mobile-nav {
        width: 100%;
        max-width: none;
    }

    .mobile-nav-logo-text {
        font-size: 14px;
    }

    .mobile-nav-item {
        padding: 14px 18px;
        font-size: 15px;
    }

    .mobile-nav-footer {
        padding: 15px 20px;
    }

    .mobile-nav-social a {
        width: 40px;
        height: 40px;
    }

        .mobile-nav-social a svg {
            width: 20px;
            height: 20px;
        }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-nav {
        max-width: 400px;
    }

    .mobile-nav-header {
        padding: 25px;
    }

    .mobile-nav-logo img {
        height: 55px;
    }

    .mobile-nav-logo-text {
        font-size: 20px;
    }

    .mobile-nav-item {
        padding: 22px 30px;
        font-size: 18px;
    }

    .mobile-nav-social a {
        width: 50px;
        height: 50px;
    }
}

/* Desktop - Hide mobile menu */
@media (min-width: 1025px) {
    .mobile-nav,
    .mobile-nav-overlay,
    .mobile-menu-trigger {
        display: none !important;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav-header {
        padding: 12px 20px;
    }

    .mobile-nav-logo img {
        height: 35px;
    }

    .mobile-nav-item {
        padding: 12px 20px;
    }

    .mobile-nav-contact {
        display: none;
    }

    .mobile-nav-footer {
        padding: 12px 20px;
    }

    .mobile-nav-social {
        margin-bottom: 8px;
    }

        .mobile-nav-social a {
            width: 38px;
            height: 38px;
        }
}

/* Safe Area for notched phones */
@supports (padding: max(0px)) {
    .mobile-nav-header {
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .mobile-nav-footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav-overlay,
    .mobile-nav-item,
    .mobile-nav-close,
    .mobile-nav-social a {
        transition: none;
    }
}
