/* =========================================================
   SUN SHINE CLUB
   MEMBER PROFILE PAGE
   Common CSS for all member pages
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {

    --primary: #9381ff;
    --primary-dark: #7565e8;
    --primary-light: #b8b8ff;

    --club-dark: #003b46;
    --club-dark-2: #005563;

    --text: #18202a;
    --text-light: #667085;

    --white: #ffffff;
    --background: #f7f8fc;
    --card: #ffffff;

    --border: #e8eaf1;

    --success: #16a34a;
    --success-bg: #ecfdf3;

    --shadow:
        0 15px 45px rgba(25, 30, 70, 0.10);

    --shadow-large:
        0 30px 80px rgba(30, 25, 90, 0.18);

    --container: 1200px;

    --radius: 24px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    overflow-x: hidden;

    background: var(--background);

    color: var(--text);

    font-family:
        "Poppins",
        "Noto Sans Oriya",
        sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}


/* =========================================================
   COMMON CONTAINER
   ========================================================= */

.member-container {

    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin-left: auto;
    margin-right: auto;
}


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

.member-hero {

    position: relative;

    margin-top: -90px;

    padding:
        150px 0 90px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 8% 15%,
            rgba(
                255,
                255,
                255,
                0.20
            ),
            transparent 28%
        ),

        radial-gradient(
            circle at 90% 85%,
            rgba(
                255,
                255,
                255,
                0.15
            ),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #9381ff,
            #b8b8ff
        );
}


/* Decorative circles */

.member-hero::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -170px;
    right: -80px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    pointer-events: none;
}

.member-hero::after {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    bottom: -140px;
    left: -80px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    pointer-events: none;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 28px;

    color:
        rgba(
            255,
            255,
            255,
            0.90
        );

    font-size: 13px;
}

.breadcrumb a {

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition:
        opacity 0.25s ease;
}

.breadcrumb a:hover {

    opacity: 0.70;
}

.breadcrumb span:last-child {

    opacity: 0.78;

    overflow-wrap: anywhere;
}


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

.member-profile {

    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns:
        minmax(260px, 390px)
        minmax(0, 1fr);

    align-items: center;

    gap: 60px;

    padding: 45px;

    background:
        rgba(
            255,
            255,
            255,
            0.97
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.80
        );

    border-radius: var(--radius);

    box-shadow: var(--shadow-large);

    overflow: hidden;
}


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

.member-photo-wrapper {

    position: relative;

    width: 100%;

    max-width: 360px;

    margin: auto;

    aspect-ratio: 1 / 1;
}


/* Outer border */

.member-photo-wrapper::before {

    content: "";

    position: absolute;

    inset: -10px;

    border:
        2px solid
        rgba(
            147,
            129,
            255,
            0.20
        );

    border-radius: 30px;

    pointer-events: none;
}


/* Decorative square */

.member-photo-wrapper::after {

    content: "";

    position: absolute;

    width: 65px;
    height: 65px;

    right: -14px;
    bottom: -14px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    z-index: -1;

    opacity: 0.85;
}


/* Actual image */

.member-photo {

    display: block;

    width: 100%;

    height: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    object-position: center;

    border-radius: 24px;

    background: #f0f1f5;

    box-shadow:
        0 18px 45px
        rgba(
            30,
            30,
            70,
            0.15
        );
}


/* =========================================================
   MEMBER INFORMATION
   ========================================================= */

.member-info {

    min-width: 0;
}


/* =========================================================
   MEMBER BADGE
   ========================================================= */

.member-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    padding:
        7px 14px;

    border-radius: 50px;

    background:
        var(--success-bg);

    color:
        var(--success);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: 0.9px;
}

.member-badge::before {

    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--success);

    box-shadow:
        0 0 0 4px
        rgba(
            22,
            163,
            74,
            0.10
        );
}


/* =========================================================
   MEMBER NAME
   ========================================================= */

.member-info h1 {

    margin: 0;

    color:
        var(--text);

    font-size:
        clamp(
            2.1rem,
            5vw,
            3.5rem
        );

    line-height: 1.12;

    font-weight: 750;

    letter-spacing: -1.5px;

    overflow-wrap: anywhere;
}


/* =========================================================
   ODIA NAME
   ========================================================= */

.member-odia {

    margin-top: 8px;

    color:
        var(--primary-dark);

    font-size: 2rem;

    font-weight: 500;

    line-height: 1.6;
}


/* =========================================================
   DESIGNATION
   ========================================================= */

.member-designation {

    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 14px;

    font-weight: 500;
}


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

.member-details {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 13px;

    margin-top: 28px;
}


/* Individual information box */

.member-detail-item {

    min-width: 0;

    padding:
        16px 17px;

    background:
        #fafaff;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.member-detail-item:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(
            147,
            129,
            255,
            0.35
        );

    box-shadow:
        0 8px 25px
        rgba(
            40,
            30,
            110,
            0.07
        );
}


/* Detail label */

.member-detail-item span {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 5px;

    color:
        var(--text-light);

    font-size: 10px;

    font-weight: 650;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


/* Detail icon */

.member-detail-item span i {

    color:
        var(--primary);

    font-size: 11px;
}


/* Detail value */

.member-detail-item strong {

    display: block;

    color:
        var(--text);

    font-size: 13px;

    font-weight: 650;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* Phone link */

.member-detail-item strong a {

    color:
        var(--text);

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.member-detail-item strong a:hover {

    color:
        var(--primary-dark);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.member-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 27px;
}


/* Common buttons */

.back-btn,
.share-btn {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        11px 20px;

    border-radius: 13px;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* Back button */

.back-btn {

    color:
        var(--text);

    background:
        #f2f3f8;

    border:
        1px solid
        var(--border);
}

.back-btn:hover {

    transform:
        translateY(-2px);

    background:
        #e9eaf1;

    box-shadow:
        0 8px 20px
        rgba(
            30,
            30,
            60,
            0.08
        );
}


/* Share button */

.share-btn {

    border: none;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 9px 24px
        rgba(
            117,
            101,
            232,
            0.22
        );
}

.share-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 13px 30px
        rgba(
            117,
            101,
            232,
            0.30
        );
}

.back-btn:active,
.share-btn:active {

    transform:
        translateY(0);
}


/* =========================================================
   ABOUT SECTION
   ========================================================= */

.member-content-section {

    padding:
        85px 0;

    background:
        var(--background);
}


/* About content */

.about-member {

    max-width: 900px;

    margin:
        0 auto;

    padding:
        40px;

    background:
        var(--white);

    border:
        1px solid
        var(--border);

    border-radius:
        22px;

    box-shadow:
        var(--shadow);
}


/* Small label */

.section-label {

    display: inline-block;

    margin-bottom: 8px;

    color:
        var(--primary-dark);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


/* About heading */

.about-member h2 {

    margin-bottom: 17px;

    color:
        var(--text);

    font-size:
        clamp(
            1.6rem,
            4vw,
            2.2rem
        );

    line-height: 1.3;

    font-weight: 700;
}


/* Heading underline */

.about-member h2::after {

    content: "";

    display: block;

    width: 55px;

    height: 4px;

    margin-top: 10px;

    border-radius: 50px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-light)
        );
}


/* About paragraph */

.about-member p {

    color:
        var(--text-light);

    font-size: 15px;

    line-height: 1.95;

    text-align: left;
}

.about-member p strong {

    color:
        var(--text);

    font-weight: 650;
}


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

.share-toast {

    position: fixed;

    left: 50%;

    bottom: 25px;

    z-index: 99999;

    max-width:
        calc(100% - 30px);

    padding:
        12px 20px;

    border-radius: 12px;

    color:
        #ffffff;

    background:
        #20242b;

    box-shadow:
        0 12px 35px
        rgba(
            0,
            0,
            0,
            0.22
        );

    font-size: 13px;

    font-weight: 600;

    opacity: 0;

    pointer-events: none;

    transform:
        translate(
            -50%,
            20px
        );

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.share-toast.show {

    opacity: 1;

    transform:
        translate(
            -50%,
            0
        );
}


/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible {

    outline:
        3px solid
        rgba(
            147,
            129,
            255,
            0.40
        );

    outline-offset: 3px;
}


/* =========================================================
   TABLET
   992px
   ========================================================= */

@media (max-width: 992px) {


    /* Navbar */

    .nav-links {

        gap: 0;
    }

    .nav-links a {

        padding:
            9px 9px;

        font-size: 12px;
    }


    /* Profile */

    .member-profile {

        grid-template-columns:
            minmax(240px, 300px)
            minmax(0, 1fr);

        gap: 40px;

        padding: 35px;
    }


    .member-photo-wrapper {

        max-width: 300px;
    }


    .member-info h1 {

        font-size: 2.65rem;
    }

}


/* =========================================================
   MOBILE NAVIGATION
   768px
   ========================================================= */

@media (max-width: 768px) {


    /* Header */

    .site-header {

        padding:
            12px 12px 0;
    }


    .navbar {

        min-height: 62px;

        padding:
            7px 12px;

        border-radius: 28px;
    }


    /* Logo */

    .logo-container img {

        width: 44px;

        height: 44px;

        flex-basis: 44px;
    }


    .logo-text h2 {

        font-size: 15px;
    }


    .logo-text span {

        font-size: 8px;

        letter-spacing: 0.8px;
    }


    /* Menu button */

    .menu-btn {

        display: flex;

        align-items: center;

        justify-content: center;
    }


    /* Mobile nav */

    .nav-links {

        position: absolute;

        top:
            calc(100% + 10px);

        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding: 12px;

        background:
            rgba(
                255,
                255,
                255,
                0.98
            );

        border:
            1px solid
            rgba(
                255,
                255,
                255,
                0.8
            );

        border-radius: 20px;

        box-shadow:
            0 18px 45px
            rgba(
                0,
                0,
                0,
                0.13
            );

        backdrop-filter:
            blur(15px);
    }


    .nav-links.active {

        display: flex;
    }


    .nav-links li {

        width: 100%;
    }


    .nav-links a {

        width: 100%;

        padding:
            11px;

        text-align: center;

        font-size: 13px;
    }


    /* Hero */

    .member-hero {

        margin-top: -74px;

        padding:
            120px 0 60px;
    }


    /* Container */

    .member-container {

        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }


    /* Breadcrumb */

    .breadcrumb {

        margin-bottom: 22px;

        font-size: 12px;
    }


    /* Profile */

    .member-profile {

        grid-template-columns: 1fr;

        gap: 30px;

        padding:
            30px 24px;

        border-radius: 22px;
    }


    /* PHOTO */

    .member-photo-wrapper {

        width:
            min(
                100%,
                270px
            );

        max-width: 270px;

        margin:
            0 auto;
    }


    .member-photo {

        border-radius: 22px;
    }


    /* Center information */

    .member-info {

        text-align: center;
    }


    .member-info h1 {

        font-size:
            clamp(
                2rem,
                7vw,
                2.6rem
            );
    }


    .member-odia {

        font-size: 2rem;
    }


    .member-designation {

        font-size: 13px;
    }


    /* Details */

    .member-details {

        text-align: left;

        gap: 10px;

        margin-top: 24px;
    }


    .member-detail-item {

        padding:
            14px;
    }


    /* Actions */

    .member-actions {

        justify-content: center;

        margin-top: 24px;
    }


    /* About */

    .member-content-section {

        padding:
            60px 0;
    }


    .about-member {

        padding:
            30px 24px;

        border-radius: 20px;
    }

}


/* =========================================================
   SMALL MOBILE
   576px
   ========================================================= */

@media (max-width: 576px) {


    .member-hero {

        padding:
            115px 0 50px;
    }


    .member-profile {

        gap: 26px;

        padding:
            25px 18px;
    }


    /* Smaller but still clear photo */

    .member-photo-wrapper {

        width:
            min(
                72vw,
                240px
            );

        max-width: 240px;
    }


    .member-photo {

        border-radius: 20px;
    }


    .member-photo-wrapper::before {

        inset: -7px;

        border-radius: 25px;
    }


    .member-photo-wrapper::after {

        width: 48px;

        height: 48px;

        right: -9px;

        bottom: -9px;

        border-radius: 14px;
    }


    .member-info h1 {

        font-size:
            clamp(
                1.75rem,
                8vw,
                2.2rem
            );

        letter-spacing: -0.7px;
    }


    .member-odia {

        font-size: 2rem;
    }


    /* Two-column information */

    .member-details {

        grid-template-columns:
            1fr 1fr;
    }


    .member-detail-item {

        padding:
            13px 12px;
    }


    .member-detail-item span {

        font-size: 9px;

        gap: 5px;
    }


    .member-detail-item strong {

        font-size: 12px;
    }


    /* Buttons */

    .member-actions {

        flex-direction: column;

        width: 100%;
    }


    .back-btn,
    .share-btn {

        width: 100%;

        min-height: 46px;
    }


    /* About */

    .about-member {

        padding:
            27px 20px;
    }


    .about-member p {

        font-size: 14px;

        line-height: 1.85;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   400px
   ========================================================= */

@media (max-width: 400px) {


    .site-header {

        padding:
            8px 8px 0;
    }


    .navbar {

        min-height: 58px;

        padding:
            6px 10px;

        border-radius: 24px;
    }


    .logo-container {

        gap: 8px;
    }


    .logo-container img {

        width: 40px;

        height: 40px;

        flex-basis: 40px;
    }


    .logo-text h2 {

        font-size: 13px;
    }


    .logo-text span {

        display: none;
    }


    .menu-btn {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

        font-size: 18px;
    }


    .member-container {

        width:
            calc(100% - 20px);
    }


    .member-hero {

        padding:
            108px 0 40px;
    }


    .member-profile {

        padding:
            22px 14px;

        gap: 22px;

        border-radius: 18px;
    }


    /* Small mobile photo */

    .member-photo-wrapper {

        width:
            min(
                68vw,
                210px
            );

        max-width: 210px;
    }


    .member-photo {

        border-radius: 18px;
    }


    .member-info h1 {

        font-size:
            1.65rem;
    }


    .member-odia {

        font-size:
            1.5rem;
    }


    .member-details {

        grid-template-columns: 1fr;

        gap: 9px;
    }


    .member-detail-item {

        display: grid;

        grid-template-columns:
            105px
            minmax(0, 1fr);

        align-items: center;

        gap: 8px;

        padding:
            12px;
    }


    .member-detail-item span {

        margin: 0;
    }


    .member-detail-item strong {

        text-align: right;
    }


    .about-member {

        padding:
            24px 16px;
    }


    .about-member h2 {

        font-size:
            1.45rem;
    }

}


/* =========================================================
   EXTRA SMALL DEVICES
   340px
   ========================================================= */

@media (max-width: 340px) {


    .member-photo-wrapper {

        width:
            180px;

        max-width:
            180px;
    }


    .member-info h1 {

        font-size:
            1.45rem;
    }


    .member-detail-item {

        grid-template-columns:
            90px
            minmax(0, 1fr);
    }


    .member-detail-item span {

        font-size:
            8px;
    }


    .member-detail-item strong {

        font-size:
            11px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}