
/* ==========================================
   MEMBER PROFILE PAGE
   Simple Green & White Design
========================================== */

:root {
    --profile-green: #075e54;
    --profile-bright: #25d366;
    --profile-text: #263238;
    --profile-muted: #718087;
    --profile-bg: #f5f7f8;
    --profile-border: #e6ebed;
}

/* ==========================================
   MEMBER HERO
========================================== */

.member-profile-hero {
    position: relative;
    overflow: hidden;
    padding: 55px 0;
    background: var(--profile-green);
    color: #fff;
}

.member-profile-hero .container {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 32px));
    margin: auto;
}

.member-hero-content {
    max-width: 750px;
}

.member-hero-kicker {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 30px;
    background: rgba(255,255,255,.13);
    color: #d5f5e9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-profile-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 5vw, 45px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.member-hero-class {
    margin: 13px 0 0;
    color: #e1f2ed;
    font-size: 15px;
}

.member-hero-class strong {
    color: #fff;
}

.member-hero-line {
    width: 55px;
    height: 4px;
    border-radius: 10px;
    background: var(--profile-bright);
    margin-top: 22px;
}

.member-hero-decoration {
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 350px;
    height: 350px;
    right: -140px;
    top: -200px;
}

.decoration-two {
    width: 250px;
    height: 250px;
    left: -140px;
    bottom: -180px;
}

/* ==========================================
   MAIN PROFILE SECTION
========================================== */

.member-profile-section {
    background: var(--profile-bg);
    padding: 45px 0;
}

.member-profile-section > .container {
    width: min(1050px, calc(100% - 32px));
    margin: auto;
}

/* ==========================================
   PROFILE CARD
========================================== */

.premium-member-card {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 32px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 14px;
    align-items: center;
}

/* ==========================================
   PROFILE PHOTO
========================================== */

.member-profile-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #e8f7f1;
}

.member-profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.large-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--profile-green);
    font-size: 100px;
    font-weight: 800;
    background: #e8f7f1;
}

.member-photo-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(7,94,84,.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================
   MEMBER DETAILS
========================================== */

.member-profile-details {
    min-width: 0;
}

.member-label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--profile-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.member-profile-details h2 {
    margin: 0 0 14px;
    color: var(--profile-text);
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.member-class-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 7px;
    background: #e8f7f1;
    color: var(--profile-green);
    font-size: 12px;
    margin-bottom: 22px;
}

/* ==========================================
   PERSONAL INFORMATION GRID
========================================== */

.member-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.member-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f7f9f9;
    border: 1px solid #edf0f0;
    border-radius: 9px;
    min-width: 0;
}

.member-detail-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f7f1;
    border-radius: 8px;
    font-size: 16px;
}

.member-detail-card > div:last-child {
    min-width: 0;
}

.member-detail-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--profile-muted);
    font-size: 11px;
    font-weight: 600;
}

.member-detail-card p {
    margin: 0;
    color: var(--profile-text);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ==========================================
   SHARE AND COPY BUTTONS
========================================== */

.member-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.member-share-btn,
.member-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.member-share-btn {
    background: var(--profile-green);
    color: #fff;
    border: 1px solid var(--profile-green);
}

.member-share-btn:hover {
    background: #064c44;
}

.member-copy-btn {
    background: #fff;
    color: var(--profile-green);
    border: 1px solid var(--profile-green);
}

.member-copy-btn:hover {
    background: #e8f7f1;
}

.share-icon {
    font-size: 17px;
}

/* ==========================================
   ABOUT MEMBER
========================================== */

.member-about-card {
    margin-top: 25px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 12px;
}

.member-section-heading {
    margin-bottom: 20px;
}

.member-section-heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--profile-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.member-section-heading h2 {
    margin: 0;
    color: var(--profile-text);
    font-size: 25px;
}

.member-about-content p {
    margin: 0;
    color: #596970;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* ==========================================
   MEMBER PHOTO GALLERY
========================================== */

.public-member-gallery {
    margin-top: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 12px;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.gallery-heading p {
    margin: 8px 0 0;
    color: var(--profile-muted);
    font-size: 13px;
    line-height: 1.6;
}

.public-gallery-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    padding: 10px;
    border-radius: 8px;
    background: #e8f7f1;
    color: var(--profile-green);
}

.public-gallery-count strong {
    font-size: 20px;
}

.public-gallery-count span {
    font-size: 11px;
}

/* PHOTO GRID */

.public-member-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.public-member-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 9px;
    overflow: hidden;
    background: #e8eeee;
    cursor: pointer;
}

.public-member-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.public-member-photo:hover img {
    transform: scale(1.06);
}

.public-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(7,94,84,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s ease;
}

.public-member-photo:hover .public-photo-overlay,
.public-member-photo:focus-visible .public-photo-overlay {
    opacity: 1;
}

.public-photo-view {
    font-size: 28px;
    font-weight: 300;
}

/* EMPTY GALLERY */

.public-gallery-empty {
    padding: 35px 15px;
    text-align: center;
    background: #f7f9f9;
    border-radius: 10px;
}

.public-gallery-empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.public-gallery-empty h3 {
    margin: 0 0 8px;
    color: var(--profile-text);
}

.public-gallery-empty p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================
   BACK BUTTON
========================================== */

.member-back-wrapper {
    margin-top: 25px;
}

.member-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--profile-green);
    border-radius: 7px;
    color: var(--profile-green);
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.member-back-btn:hover {
    background: var(--profile-green);
    color: #fff;
}

/* ==========================================
   LIGHTBOX
========================================== */

.member-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 65px 65px 35px;
    background: rgba(0,0,0,.94);
}

.member-gallery-lightbox.active {
    display: flex;
}

.member-lightbox-content {
    width: 100%;
    max-width: 950px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-lightbox-image-wrap {
    width: 100%;
    height: min(72vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-lightbox-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

.member-lightbox-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #fff;
    text-align: center;
}

.member-lightbox-info strong {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.member-lightbox-info span {
    color: #c6cccc;
    font-size: 12px;
}

.member-lightbox-close,
.member-lightbox-prev,
.member-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.member-lightbox-close:hover,
.member-lightbox-prev:hover,
.member-lightbox-next:hover {
    background: var(--profile-green);
}

.member-lightbox-close {
    top: 20px;
    right: 22px;
    width: 43px;
    height: 43px;
    font-size: 30px;
}

.member-lightbox-prev,
.member-lightbox-next {
    top: 50%;
    width: 45px;
    height: 45px;
    font-size: 32px;
    transform: translateY(-50%);
}

.member-lightbox-prev {
    left: 15px;
}

.member-lightbox-next {
    right: 15px;
}

/* ==========================================
   SHARE TOAST
========================================== */

.member-share-toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    z-index: 100000;
    transform: translate(-50%, 20px);
    padding: 12px 20px;
    border-radius: 8px;
    background: #263238;
    color: #fff;
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    text-align: center;
    max-width: calc(100% - 30px);
}

.member-share-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ==========================================
   404 MEMBER NOT FOUND
========================================== */

.member-not-found {
    min-height: 55vh;
    display: flex;
    align-items: center;
    padding: 45px 0;
    background: var(--profile-bg);
}

.member-not-found .container {
    width: min(650px, calc(100% - 32px));
    margin: auto;
}

.member-not-found .empty-state {
    padding: 40px 25px;
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 14px;
}

.member-error-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e8f7f1;
    color: var(--profile-green);
    font-size: 32px;
    font-weight: 800;
}

.member-error-label {
    color: var(--profile-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.member-not-found h1 {
    color: var(--profile-text);
    font-size: 27px;
}

.member-not-found p {
    color: var(--profile-muted);
    font-size: 14px;
    line-height: 1.7;
}

.member-not-found .btn {
    display: inline-flex;
    margin-top: 12px;
    padding: 12px 20px;
    border-radius: 7px;
    background: var(--profile-green);
    color: #fff;
    text-decoration: none;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 850px) {

    .premium-member-card {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 22px;
        padding: 22px;
    }

    .public-member-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

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

@media (max-width: 600px) {

    .member-profile-hero {
        padding: 38px 0;
    }

    .member-profile-section {
        padding: 25px 0;
    }

    .premium-member-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 16px;
        border-radius: 11px;
    }

    .member-profile-photo {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 9px;
    }

    .large-avatar {
        font-size: 75px;
    }

    .member-profile-details h2 {
        font-size: 25px;
    }

    .member-details-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .member-about-card,
    .public-member-gallery {
        padding: 18px;
        margin-top: 17px;
    }

    .member-section-heading h2 {
        font-size: 21px;
    }

    .public-member-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .member-profile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .member-share-btn,
    .member-copy-btn {
        padding: 11px 8px;
        font-size: 12px;
    }

    .gallery-heading {
        align-items: flex-start;
    }

    .member-gallery-lightbox {
        padding: 60px 40px 30px;
    }

    .member-lightbox-image-wrap {
        height: 65vh;
    }

    .member-lightbox-prev {
        left: 5px;
    }

    .member-lightbox-next {
        right: 5px;
    }

}

/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 360px) {

    .member-profile-actions {
        grid-template-columns: 1fr;
    }

    .public-gallery-count {
        min-width: 52px;
    }

    .member-gallery-lightbox {
        padding-left: 30px;
        padding-right: 30px;
    }

}
