/**
 * PWA More Menu Page CSS
 *
 * Full-page menu (McDonald's/Greggs pattern).
 * Blue hero header, grouped sections, chevron links.
 *
 * @package SayWOW_PWA
 */

/* ============================================
   MORE PAGE BODY
   ============================================ */

body.pwa-more-page {
    font-family: var(--sw-font);
    background: var(--sw-grey-100);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HERO BLOCK (blue header area)
   ============================================ */

.pwa-more-hero {
    background: linear-gradient(135deg, var(--sw-blue), var(--sw-blue-dark));
    color: var(--sw-white);
    padding: 16px 20px;
    padding-left: calc(20px + var(--pwa-safe-left));
    padding-right: calc(20px + var(--pwa-safe-right));
}

/* Logged in: user greeting + logout */
.pwa-more-hero__user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pwa-more-hero__user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwa-more-hero__greeting {
    font-size: 1.25rem;
    font-weight: var(--sw-fw-bold);
    line-height: 1.3;
}

.pwa-more-hero__balance {
    font-size: 0.875rem;
    font-weight: var(--sw-fw-regular);
    opacity: 0.9;
}

.pwa-more-hero__balance strong {
    font-weight: var(--sw-fw-bold);
}

/* Hero logout button */
.pwa-more-hero__logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--sw-white);
    font-family: var(--sw-font);
    font-size: 13px;
    font-weight: var(--sw-fw-semibold);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.pwa-more-hero__logout:hover,
.pwa-more-hero__logout:active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--sw-white);
}

.pwa-more-hero__logout svg {
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

/* ============================================
   SECTIONS CONTAINER
   ============================================ */

.pwa-more-sections {
    padding: 12px 0;
    padding-bottom: calc(var(--pwa-footer-height) + var(--pwa-safe-bottom) + 12px);
}

/* ============================================
   INDIVIDUAL SECTION
   ============================================ */

.pwa-more-section {
    margin-bottom: 8px;
    background: var(--sw-white);
}

.pwa-more-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px 8px;
    padding-left: calc(20px + var(--pwa-safe-left));
    font-size: 0.75rem;
    font-weight: var(--sw-fw-bold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sw-grey-500);
}

.pwa-more-section__icon {
    display: flex;
    align-items: center;
    color: var(--sw-grey-500);
}

.pwa-more-section__icon svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   LINK LIST
   ============================================ */

.pwa-more-section__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pwa-more-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    padding-left: calc(20px + var(--pwa-safe-left));
    padding-right: calc(20px + var(--pwa-safe-right));
    color: var(--sw-grey-900);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: var(--sw-fw-medium);
    border-bottom: 1px solid var(--sw-grey-200);
    transition: background 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.pwa-more-link:last-child {
    border-bottom: none;
}

.pwa-more-link:active {
    background: var(--sw-grey-100);
}

.pwa-more-link__label {
    flex: 1;
}

.pwa-more-link__chevron {
    color: var(--sw-grey-300);
    flex-shrink: 0;
}

/* ============================================
   LOGOUT
   ============================================ */

.pwa-more-section--logout {
    margin-top: 4px;
}

.pwa-more-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    padding-left: calc(20px + var(--pwa-safe-left));
    color: var(--sw-red);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: var(--sw-fw-semibold);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s ease;
}

.pwa-more-logout:active {
    background: var(--sw-error-bg);
}

.pwa-more-logout svg {
    flex-shrink: 0;
}
