/**
 * Modeo Account - Navigation Menu
 * 
 * Premium styling for account sidebar/tab navigation
 */

/* ========================================
   NAVIGATION CONTAINER
   ======================================== */

.modeo-account-nav {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .modeo-account-nav {
        position: static;
        border-radius: 12px;
        padding: 16px;
    }
}

/* ========================================
   USER SECTION
   ======================================== */

.account-nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.account-nav-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cc1616 0%, #f87171 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.25);
}

.avatar-initials {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-nav-user-info {
    flex: 1;
    min-width: 0;
}

.account-nav-username {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-nav-email {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   NAVIGATION MENU
   ======================================== */

.account-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-nav-item {
    margin-bottom: 4px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.account-nav-link:hover {
    background: rgba(204, 22, 22, 0.05);
    color: #cc1616;
}

.account-nav-link.active,
.account-nav-item.is-active .account-nav-link {
    background: linear-gradient(135deg, #cc1616 0%, #b31313 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.25);
}

.account-nav-link.active .account-nav-icon,
.account-nav-item.is-active .account-nav-icon {
    color: #ffffff;
}

/* ===========================================
   ICONS
   =========================================== */

.account-nav-icon {
    font-size: 20px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.account-nav-link:not(.active):hover .account-nav-icon {
    color: #cc1616;
}

/* ========================================
   LABEL
   ======================================== */

.account-nav-label {
    flex: 1;
}

/* ========================================
   COUNT BADGE
   ======================================== */

.account-nav-count {
    background: #cc1616;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    min-width: 24px;
    text-align: center;
}

.account-nav-link.active .account-nav-count,
.account-nav-item.is-active .account-nav-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 767px) {
    .account-nav-user {
        padding: 16px;
        margin: -16px -16px 16px;
        background: linear-gradient(135deg, rgba(204, 22, 22, 0.05) 0%, rgba(248, 113, 113, 0.03) 100%);
        border-radius: 12px 12px 0 0;
        border-bottom: 1px solid rgba(204, 22, 22, 0.1);
    }

    .account-nav-link {
        padding: 12px 14px;
    }

    .account-nav-icon {
        font-size: 22px;
    }
}

/* ========================================
   LOGOUT LINK SPECIAL STYLING
   ======================================== */

.account-nav-item.woocommerce-MyAccount-navigation-link--customer-logout .account-nav-link {
    color: #6b7280;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    border-radius: 0;
}

.account-nav-item.woocommerce-MyAccount-navigation-link--customer-logout .account-nav-link:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}