/* =========================================
   1. CẤU TRÚC HEADER CHUNG
========================================= */

/* Style nền tảng cho Header */
.yoummo-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between; /* Căn đều 2 bên */
    align-items: center;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo */
.logo-img {
    height: 40px; /* Chiều cao logo chuẩn */
    width: auto;
    display: block;
}

/* =========================================
   2. GIAO DIỆN DESKTOP (PC - Màn hình lớn)
========================================= */

/* Mặc định hiển thị menu desktop */
.desktop-menu-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.primary-menu-ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.primary-menu-ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.primary-menu-ul li a:hover {
    color: #cc0000;
}

/* Nút Action bên phải Desktop */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.login-btn {
    padding: 8px 20px;
    background: #f1f1f1;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}
.login-btn:hover { background: #e0e0e0; }

.user-btn img {
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #eee;
}

/* Ẩn Menu Mobile App trên Desktop */
.yoummo-app-nav {
    display: none; 
}

/* =========================================
   3. GIAO DIỆN MOBILE (Điện thoại)
========================================= */

@media (max-width: 768px) {
    
    /* Ẩn Menu Desktop */
    .desktop-menu-wrap { display: none !important; }

    /* Hiện Menu App */
    .yoummo-app-nav { display: block; }

    /* Điều chỉnh Header Logo */
    .header-inner { 
        justify-content: center; /* Logo ra giữa */
        height: 80px; 
        border-bottom: none; /* Bỏ viền dưới header vì đã có viền menu app */
    }
    .logo-img { height: 80px; } /* Logo nhỏ hơn chút trên mobile */

    /* --- STYLE MENU APP --- */
    .yoummo-app-nav {
        background: #ffffff;
        border-top: 1px solid #f0f0f0;
        padding: 6px 0;
    }

    .app-nav-inner {
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        padding: 0 5px;
    }

    /* Item */
    .app-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #8e8e93;
        font-family: 'Inter', sans-serif;
        padding: 4px 0;
        font-size: 10px;
        font-weight: 500;
    }

    /* Icon SVG */
    .app-nav-item .app-icon {
        width: 26px;
        height: 26px;
        margin-bottom: 3px;
        stroke-width: 1.7px;
        transition: color 0.2s ease, stroke 0.2s ease;
    }
    
    .app-nav-item .label { line-height: 1; }

    /* Active State */
    .app-nav-item.active { color: #FF0000; font-weight: 600; }
    .app-nav-item.active .app-icon { stroke: #FF0000; }

    /* Upload Button (+) */
    .app-nav-item.upload-item .plus-circle {
        background: #222;
        color: #fff;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .app-nav-item.upload-item .plus-icon {
        width: 20px;
        height: 20px;
        stroke: #fff;
        margin-bottom: 0;
        stroke-width: 2.5px;
    }

    /* Avatar */
    .avatar-item img {
        border-radius: 50%;
        width: 26px;
        height: 26px;
        object-fit: cover;
        border: 1px solid #eee;
        margin-bottom: 3px;
    }
    .app-nav-item.avatar-item.active img {
        border-color: #FF0000;
        border-width: 2px;
    }
}
