/*
 * Friendnom Main Stylesheet
 * Version 1.0
 */

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #f5f7fa;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   FRIENDNOM AUTH HEADER GUARD
   Login / Register / Forgot Password / Reset Password
   ========================================================= */

body.friendnom-auth-page .fn-auth-header {
    width: 100%;
    height: 88px;

    padding: 0 40px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    overflow: hidden;
}


body.friendnom-auth-page .fn-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    width: 190px;
    height: 64px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    text-decoration: none;
}


body.friendnom-auth-page .fn-auth-logo img {
    display: block !important;

    width: 185px !important;
    max-width: 185px !important;

    height: 54px !important;
    max-height: 54px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
}


/* =========================================================
   FRIENDNOM HEADER
   ========================================================= */

.fn-header {
    width: 100%;
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.fn-header-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* BRAND */

.fn-header-brand {
    flex: 0 0 auto;
}

.fn-brand {
    color: #1677ff;
    font-size: 27px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.7px;
}

.fn-brand:hover {
    color: #0868e8;
}


/* SEARCH */

.fn-header-search {
    width: 320px;
    flex: 0 1 320px;
}

.fn-header-search input {
    width: 100%;
    height: 42px;
    padding: 0 18px;

    border: 1px solid #e2e6eb;
    border-radius: 22px;

    background: #f3f5f7;
    color: #1f2937;

    font-family: inherit;
    font-size: 14px;

    outline: none;
    transition: 0.2s ease;
}

.fn-header-search input:focus {
    background: #ffffff;
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
}


/* NAVIGATION */

.fn-header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fn-header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 16px;

    color: #4b5563;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    border-radius: 10px;
    transition: 0.15s ease;
}

.fn-header-nav a:hover {
    color: #1677ff;
    background: #f3f7ff;
}


/* RIGHT SIDE */

.fn-header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 10px;
}

.fn-header-action {
    padding: 10px 12px;

    color: #4b5563;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    border-radius: 9px;
}

.fn-header-action:hover {
    color: #1677ff;
    background: #f3f7ff;
}


/* PROFILE AVATAR */

.fn-header-profile {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    overflow: hidden;
}

.fn-header-profile img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}


/* LOGIN */

.fn-header-login {
    color: #1677ff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    padding: 10px 14px;
}


/* SIGN UP */

.fn-header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 19px;

    background: #1677ff;
    color: #ffffff;

    border-radius: 10px;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.15s ease;
}

.fn-header-register:hover {
    background: #0868e8;
    color: #ffffff;
}


/* ACCESSIBILITY */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* TABLET */

@media (max-width: 1000px) {

    .fn-header-inner {
        padding: 0 20px;
        gap: 16px;
    }

    .fn-header-search {
        width: auto;
        flex: 1;
        max-width: 300px;
    }

    .fn-header-nav a {
        padding: 0 10px;
    }
}


/* MOBILE */

@media (max-width: 760px) {

    .fn-header {
        height: auto;
    }

    .fn-header-inner {
        min-height: 64px;
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .fn-header-search {
        order: 3;
        flex: 0 0 100%;
        max-width: none;
    }

    .fn-header-nav {
        display: none;
    }

    .fn-header-action {
        display: none;
    }


    body.friendnom-auth-page .fn-auth-header {
        height: 76px;

        padding: 0 20px;
    }


    body.friendnom-auth-page .fn-auth-logo {
        width: 160px;
        height: 56px;
    }


    body.friendnom-auth-page .fn-auth-logo img {
        width: 155px !important;
        max-width: 155px !important;

        height: 48px !important;
        max-height: 48px !important;
    }

}


/* =========================================================
   FRIENDNOM SOCIAL APP LAYOUT
   ========================================================= */

.fn-app {
    width: 100%;
    padding: 28px 32px;
}

.fn-app-grid {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}


/* LEFT SIDEBAR
--------------------------------------------------------- */

.fn-left-sidebar {
    position: sticky;
    top: 100px;
}

.fn-side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fn-side-nav a {
    display: block;
    padding: 13px 16px;

    color: #1f2937;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    border-radius: 10px;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.fn-side-nav a:hover {
    background: #ffffff;
    color: #1677ff;
}


/* MAIN FEED
--------------------------------------------------------- */

.fn-main-feed {
    min-width: 0;
}

.fn-composer {
    display: flex;
    align-items: center;
    gap: 12px;

    background: #ffffff;

    padding: 16px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    margin-bottom: 18px;
}

.fn-composer-avatar {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    border-radius: 50%;

    background: #dbeafe;
}

.fn-composer-button {
    width: 100%;

    border: 0;
    outline: 0;

    background: #f3f4f6;

    padding: 13px 18px;

    border-radius: 24px;

    color: #6b7280;

    font-size: 15px;
    text-align: left;

    cursor: pointer;
}

.fn-composer-button:hover {
    background: #e9edf2;
}


/* TEMPORARY FEED CARD
--------------------------------------------------------- */

.fn-feed-placeholder {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 22px;
}

.fn-feed-placeholder h2 {
    margin: 0 0 8px;

    font-size: 20px;
    color: #111827;
}

.fn-feed-placeholder p {
    margin: 0;

    color: #6b7280;
    font-size: 14px;
}


/* RIGHT SIDEBAR
--------------------------------------------------------- */

.fn-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fn-widget {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 18px;
}

.fn-widget h3 {
    margin: 0 0 10px;

    font-size: 16px;
    color: #111827;
}

.fn-widget p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.5;
}


/* RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .fn-app-grid {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .fn-right-sidebar {
        display: none;
    }

}


@media (max-width: 760px) {

    .fn-app {
        padding: 16px;
    }

    .fn-app-grid {
        display: block;
    }

    .fn-left-sidebar {
        display: none;
    }

}


/* =========================================================
   FRIENDNOM - BUDDYBOSS READYLAUNCH AUTH HEADER
   ========================================================= */

.bb-rl-login-header-actions {
    display: none !important;
}

.bb-rl-login-header-logo img {
    width: 130px !important;
    max-width: 130px !important;
    height: auto !important;
}


/* =========================================================
   FRIENDNOM - ACCOUNT ACTIVATION PAGE
   ========================================================= */

body:has(#activate-page) {
    background: #f5f8fc;
}


/* ---------------------------------------------------------
   ACTIVATION HEADER
   --------------------------------------------------------- */

body:has(#activate-page) .bb-rl-login-header {
    min-height: 96px;
    padding: 0 48px !important;

    display: flex;
    align-items: center;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}


body:has(#activate-page) .bb-rl-login-header-logo {
    display: flex;
    align-items: center;
}


body:has(#activate-page) .bb-rl-login-header-logo img {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;

    display: block;
}


body:has(#activate-page) .bb-rl-login-header-actions {
    display: none !important;
}


/* ---------------------------------------------------------
   ACTIVATION CARD
   --------------------------------------------------------- */

body:has(#activate-page) #activate-page {
    width: calc(100% - 40px) !important;
    max-width: 530px !important;

    margin: 74px auto 0 !important;
    padding: 48px 46px 44px !important;

    box-sizing: border-box;

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.06) !important;

    text-align: center;
}


body:has(#activate-page) #activate-page > p:first-child {
    margin: 0 auto 30px !important;

    max-width: 430px;

    color: #475569 !important;

    font-size: 18px !important;
    line-height: 1.6 !important;

    text-align: center;
}


body:has(#activate-page) #activate-page > p:first-child::first-line {
    color: #0f172a;
    font-weight: 700;
}


body:has(#activate-page) #activate-page > p:last-child {
    margin: 0 !important;

    text-align: center;
}


/* ---------------------------------------------------------
   LOG IN BUTTON
   --------------------------------------------------------- */

body:has(#activate-page) #activate-page .button.button-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    min-height: 54px;

    padding: 0 32px !important;

    background: #1677ff !important;

    border: none !important;
    border-radius: 10px !important;

    color: #ffffff !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.20);

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


body:has(#activate-page) #activate-page .button.button-primary:hover {
    background: #0867e8 !important;

    transform: translateY(-1px);

    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.26);
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

    body:has(#activate-page) .bb-rl-login-header {
        min-height: 78px;

        padding: 0 22px !important;
    }

    body:has(#activate-page) .bb-rl-login-header-logo img {
        width: 150px !important;
        max-width: 150px !important;
    }

    body:has(#activate-page) #activate-page {
        width: calc(100% - 32px) !important;

        margin-top: 40px !important;

        padding: 38px 24px !important;
    }

    body:has(#activate-page) #activate-page > p:first-child {
        font-size: 16px !important;
    }

}


/* =========================================================
   FRIENDNOM - ACTIVATION SUCCESS CHECK
   ========================================================= */

body:has(#activate-page) #activate-page::before {
    content: "";

    display: block;

    width: 76px;
    height: 76px;

    margin: 0 auto 24px;

    border-radius: 50%;

    background-color: #eaf3ff;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px 42px;
}


/* =========================================================
   FRIENDNOM - ACTIVATION FINAL TYPOGRAPHY
   ========================================================= */

body:has(#activate-page) .fn-activation-title {
    width: 100%;
    max-width: 460px;

    margin: 0 auto 22px !important;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;

    font-size: 36px !important;
    font-weight: 750 !important;
    line-height: 1.16 !important;
    letter-spacing: -1px !important;

    color: #0b1f44 !important;

    text-align: center;
}


body:has(#activate-page) .fn-activation-title {
    max-width: 390px;
}


body:has(#activate-page) .fn-activation-description {
    max-width: 440px;

    margin: 0 auto 34px !important;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;

    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;

    letter-spacing: -0.2px;

    color: #64748b !important;

    text-align: center;
}


body:has(#activate-page) #activate-page .button.button-primary {
    font-size: 18px !important;
    font-weight: 700 !important;
}


@media (max-width: 600px) {

    body:has(#activate-page) .fn-activation-title {
        max-width: 330px;
        font-size: 30px !important;
    }

    body:has(#activate-page) .fn-activation-description {
        font-size: 17px !important;
    }

}