/* ============================================================
   PingGalaxy - My Account Page CSS
   Sidebar navigation + dashboard layout with PingGalaxy design tokens
   ============================================================ */

/* === PAGE RESETS (my account page) === */
body.woocommerce-account {
    background-color: var(--pg-white);
}

body.woocommerce-account .entry-title,
body.woocommerce-account .entry-header {
    display: none;
}

body.woocommerce-account .entry-content {
    padding: 0;
    margin: 0;
}

/* Reset WooCommerce float-based my-account layout */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: auto;
    margin-right: 0;
    clear: none;
}

/* Hide default WooCommerce navigation (replaced by custom sidebar) */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Reset WooCommerce default my-account content width */
body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 0;
    margin: 0;
}


/* === PAGE LAYOUT === */
.pg-account-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.pg-account-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}


/* === SIDEBAR NAVIGATION === */
.pg-account-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.pg-account-nav {
    position: sticky;
    top: var(--pg-header-height);
    background: var(--pg-white);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

/* User info block */
.pg-account-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--pg-border-light);
}

.pg-account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg-galaxy);
    color: var(--pg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.pg-account-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pg-account-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--pg-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-account-user-email {
    font-size: 12px;
    color: var(--pg-grey-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Navigation list */
.pg-account-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pg-account-nav-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px;
    border-radius: 2px;
    color: var(--pg-grey);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.pg-account-nav-item a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.pg-account-nav-item a:hover {
    background: var(--pg-light-grey);
    color: var(--pg-dark);
}

.pg-account-nav-item a:hover svg {
    opacity: 0.8;
}

/* Active navigation item */
.pg-account-nav-item.is-active a {
    background: var(--pg-galaxy-light-bg);
    color: var(--pg-galaxy);
    font-weight: 600;
}

.pg-account-nav-item.is-active a svg {
    opacity: 1;
    color: var(--pg-galaxy);
}

/* Logout item with red color */
.pg-account-nav-item.is-logout a {
    color: var(--pg-error);
}

.pg-account-nav-item.is-logout a:hover {
    background: rgba(220, 38, 38, 0.05);
    color: var(--pg-error);
}

.pg-account-nav-item.is-logout a svg {
    color: var(--pg-error);
}


/* === MAIN CONTENT === */
.pg-account-content {
    flex: 1;
    min-width: 0;
}


