/* ==========================================================================
   MOBILE-NATIVE CSS (Only loaded for max-width: 992px)
   ========================================================================== */

/* 1. Base Container & Utilities */
.container {
    padding: 0 16px !important;
}

/* 2. Header & Navigation (Hamburger Menu) */
.glass-nav {
    height: 64px !important; /* Fixed height for native app feel */
    padding: 0 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
}

.nav-wrapper {
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
}

.logo {
    font-size: 1.25rem !important;
}

.mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: center;
}

/* Hamburger Animation (Perfect X) */
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation Collapse Box */
.nav-collapse {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: #ffffff; /* Solid light background for clean look */
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 9998;
    display: flex !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

.nav-collapse nav {
    width: 100% !important;
}

.nav-collapse.show {
    transform: translateX(0);
}

.nav-menu {
    flex-direction: column !important;
    align-items: stretch;
    width: 100%;
    gap: 8px !important;
}

.nav-menu li {
    width: 100%;
    text-align: left;
}

.nav-link {
    font-size: 1.1rem !important;
    padding: 14px 16px !important;
    display: block;
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
}

.nav-link.active {
    background: var(--primary-grad);
    color: #fff;
}

.user-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex !important;
}

.user-actions .btn-primary,
.user-actions .btn-secondary,
.user-actions button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

/* Fix body padding to prevent content from hiding under fixed header */
body {
    padding-top: 64px !important;
}

/* 3. Hero Section & Typography */
.hero-content h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
}

.hero-content p {
    font-size: 0.95rem !important;
    padding: 0 10px !important;
}

/* 5. Category Horizontal Pill Slider (Like Google Maps) */
.categories-slider {
    padding-top: 14px !important;
    padding-bottom: 16px !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
}

.category-card {
    width: auto !important;
    height: auto !important;
    padding: 8px 14px !important;
    flex-direction: row !important;
    border-radius: 40px !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: auto !important;
    max-width: none !important;
}

.category-card .cat-icon {
    font-size: 1.1rem !important;
}

.category-card .cat-name {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 2px !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
}

.category-card .cat-title-en {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    display: block !important;
    text-transform: uppercase;
}

.category-card .cat-title-vi {
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    display: block !important;
}

/* Image icon responsive for pill-shaped mobile cards */
.category-card .cat-icon-img {
    width: 24px !important;
    height: 24px !important;
    border-width: 1.5px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

/* OCOP Badge Fix for Pill Shape */
.category-card.specialty-highlight-card {
    overflow: visible !important;
}

.category-card.specialty-highlight-card::before {
    display: none !important; /* Tắt shimmer animation trên di động để tăng hiệu năng và tránh lỗi tràn */
}

.category-card.specialty-highlight-card::after {
    top: -6px !important;
    right: 6px !important;
    font-size: 0.45rem !important;
    padding: 2px 4px !important;
    border-radius: 8px !important;
}

/* Checkin Badge Fix for Pill Shape */
.category-card.checkin-highlight-card {
    overflow: visible !important;
}

.category-card.checkin-highlight-card::before {
    display: none !important; /* Disable shimmer on mobile for performance */
}

.category-card.checkin-highlight-card::after {
    top: -6px !important;
    right: 6px !important;
    font-size: 0.45rem !important;
    padding: 2px 4px !important;
    border-radius: 8px !important;
}


