/**
 * Navigation integration styles — membership auth state in site header
 *
 * @package Kildare_Membership
 */

/* Auth block container in header-main (flex: 1 mirrors .site-logo to center nav) */
.header-membership-auth {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Shared link styles */
.kc-header-link {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* LOGIN link — bordered cyan */
.kc-header-login {
    color: #00d9ff;
    border: 1px solid rgba(0, 217, 255, 0.4);
}

.kc-header-login:hover {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
}

/* REGISTER link — solid cyan bg */
.kc-header-register {
    background: #00d9ff;
    color: #0a0e14;
}

.kc-header-register:hover {
    background: #00c4e6;
    color: #0a0e14;
}

/* MY LIBRARY link */
.kc-header-library {
    color: var(--color-text-primary, #e6e8ea);
}

.kc-header-library:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.kc-header-library.kc-auth-active {
    color: #00d9ff;
}

/* MY ACCOUNT link — avatar + text */
.kc-header-account {
    color: var(--color-text-primary, #e6e8ea);
}

.kc-header-account:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

/* Nav avatar thumbnail */
.kc-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #00d9ff;
    object-fit: cover;
    flex-shrink: 0;
}

/* Reader page overlay header — ensure auth block is visible */
body.kcr-reader-page .header-membership-auth {
    display: flex !important;
}

body.kcr-reader-page .header-membership-auth .kc-header-link {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header-membership-auth {
        flex: initial;
        gap: 6px;
        padding: 8px 0;
        border-top: 1px solid var(--color-bg-tertiary, #2a2f3e);
        width: 100%;
        justify-content: center;
    }

    .kc-header-link {
        font-size: 0.7rem;
        padding: 8px 10px;
        letter-spacing: 0.3px;
    }

    .kc-nav-avatar {
        width: 18px;
        height: 18px;
        border-width: 1px;
    }
}
