/* HERA Members - Public Styles (UIKit) */

/* ── Visibility by login state ────────────────────────── */
body:not(.logged-in) .hera-logged-in-only { display: none !important; }
body.logged-in .hera-logged-out-only { display: none !important; }

/* ── Directory ─────────────────────────────────────────── */
.hera-directory-wrap {
    width: 100%;
}

.hera-filter-bar {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.hera-cert-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
    cursor: pointer;
}

/* Directory Table */
.hera-directory-table {
    width: 100%;
}

.hera-table-thumb {
    width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.hera-member-name-link {
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.hera-member-name-link:hover {
    color: #1e87f0;
}

.hera-cert-badge {
    font-size: 0.7em;
    padding: 2px 8px;
    background: #1e87f0;
    display: inline-block;
    margin: 1px 0;
}

.hera-admin-info {
    color: #d35400;
    font-weight: 600;
}

/* Pagination */
.hera-pagination {
    margin-top: 30px;
}

.hera-pagination .uk-active a {
    background: #1e87f0;
    color: #fff;
    border-radius: 3px;
    padding: 2px 10px;
}

/* ── Single Profile ────────────────────────────────────── */
.hera-profile-wrap {
    width: 100%;
}

.hera-profile-photo-container {
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.hera-profile-photo-large {
    width: 100%;
    height: auto;
    display: block;
}

.hera-profile-name {
    margin-top: 0;
    font-size: 1.8em;
}

.hera-profile-company {
    font-size: 1.1em;
    color: #666;
    margin-top: -10px;
}

.hera-profile-position {
    font-size: 0.9em;
}

.hera-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hera-profile-certs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hera-cpd-section {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #bcdff1;
}

/* ── Edit Profile ──────────────────────────────────────── */
.hera-edit-profile-wrap {
    width: 100%;
}

.hera-edit-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e5e5;
}

.hera-admin-section {
    background: #fff9e6;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #f0d060;
}

.hera-admin-section .uk-legend {
    color: #d35400;
}

/* ── Registration ──────────────────────────────────────── */
.hera-register-wrap {
    width: 100%;
}

/* ── CPD Log ───────────────────────────────────────────── */
.hera-cpd-log-wrap {
    width: 100%;
}

.hera-cpd-total {
    font-size: 2.5em;
    font-weight: 700;
    color: #1e87f0;
    margin: 0;
}

.hera-positive {
    color: #32d296;
    font-weight: 600;
}

.hera-negative {
    color: #f0506e;
    font-weight: 600;
}

/* ── Messages ──────────────────────────────────────────── */
.hera-message-success {
    background: #edfbf6;
    color: #32d296;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #32d296;
    margin-bottom: 15px;
}

.hera-message-error {
    background: #fef4f6;
    color: #f0506e;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #f0506e;
    margin-bottom: 15px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 639px) {
    .hera-profile-name {
        font-size: 1.4em;
    }

    .hera-filter-bar {
        padding: 12px;
    }

    .hera-cpd-total {
        font-size: 2em;
    }

    .hera-table-thumb {
        width: 32px;
        height: 32px;
    }
}
