/* =========================================================
   RAIN SPREE COMMUNITY CHAT
========================================================= */

.rs-community-section {
    width: 100%;
    padding: 70px 0;
    background:
        linear-gradient(
            135deg,
            #f8f3ff 0%,
            #f3efff 45%,
            #faf7ff 100%
        );
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.rs-community-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}


/* =========================================================
   GLASS CARDS
========================================================= */

.rs-community-chat-card,
.rs-members-card,
.rs-community-info-card,
.rs-sanctum-card {

    background: rgba(255, 255, 255, 0.62);

    border: 1px solid rgba(255, 255, 255, 0.85);

    box-shadow:
        0 20px 60px rgba(91, 45, 150, 0.10),
        inset 0 1px 0 rgba(255,255,255,.75);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

}


/* =========================================================
   MAIN CHAT
========================================================= */

.rs-community-chat-card {

    position: relative;

    overflow: hidden;

    border-radius: 28px;

}


/* =========================================================
   CHAT HEADER
========================================================= */

.rs-community-chat-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 26px 30px;

    border-bottom: 1px solid rgba(110, 76, 180, 0.10);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.65),
            rgba(244,236,255,.45)
        );

}


.rs-community-title {

    display: flex;

    align-items: center;

    gap: 14px;

}


.rs-community-title-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f3ddff,
            #ead7ff
        );

    box-shadow:
        0 8px 22px rgba(117, 49, 211, .12);

    font-size: 25px;

}


.rs-community-title h2 {

    margin: 0 0 4px;

    font-family: "Cormorant Garamond", serif;

    font-size: 30px;

    line-height: 1.1;

    font-weight: 700;

    color: #34204f;

}


.rs-community-title p {

    margin: 0;

    color: #746482;

    font-size: 14px;

}


.rs-community-online {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(255,255,255,.75);

    border: 1px solid rgba(117, 49, 211, .10);

    color: #5e4972;

    font-size: 13px;

    white-space: nowrap;

}


.rs-online-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.10);

}


/* =========================================================
   MESSAGES
========================================================= */

.rs-community-messages {

    height: 520px;

    overflow-y: auto;

    padding: 8px 26px;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(112, 65, 180, .35)
        transparent;

}


.rs-community-messages::-webkit-scrollbar {

    width: 7px;

}


.rs-community-messages::-webkit-scrollbar-track {

    background: transparent;

}


.rs-community-messages::-webkit-scrollbar-thumb {

    background: rgba(112,65,180,.25);

    border-radius: 999px;

}


.rs-community-message {

    display: flex;

    gap: 14px;

    padding: 21px 4px;

    border-bottom: 1px solid rgba(70,45,110,.08);

}


.rs-community-message:last-child {

    border-bottom: 0;

}


/* =========================================================
   AVATARS
========================================================= */

.rs-community-avatar {

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #7135d4;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eee4ff
        );

    border: 1px solid rgba(115,65,180,.12);

    box-shadow:
        0 5px 16px rgba(90,50,150,.08);

}


.rs-avatar-warm {

    background:
        linear-gradient(
            145deg,
            #fff5ed,
            #f7e4ff
        );

}


.rs-avatar-brand {

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #8d4de8,
            #7131c9
        );

}


.rs-avatar-green {

    color: #15803d;

    background:
        linear-gradient(
            145deg,
            #ecfff4,
            #d8f8e6
        );

}


.rs-avatar-purple {

    color: #7131c9;

    background:
        linear-gradient(
            145deg,
            #f4e9ff,
            #e5d3ff
        );

}


.rs-avatar-blue {

    color: #2563eb;

    background:
        linear-gradient(
            145deg,
            #edf5ff,
            #dcecff
        );

}


/* =========================================================
   MESSAGE CONTENT
========================================================= */

.rs-message-content {

    min-width: 0;

    flex: 1;

}


.rs-message-meta {

    display: flex;

    align-items: baseline;

    gap: 8px;

    margin-bottom: 5px;

}


.rs-message-meta strong {

    font-size: 14px;

    font-weight: 700;

    color: #38264f;

}


.rs-message-meta span {

    font-size: 11px;

    color: #9a8ba9;

}


.rs-message-content p {

    margin: 0;

    color: #5c5364;

    font-size: 14px;

    line-height: 1.6;

    word-break: break-word;

}


/* =========================================================
   REACTIONS
========================================================= */

.rs-message-reactions {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 9px;

}


.rs-message-reactions button {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 4px 9px;

    border: 1px solid rgba(113,49,201,.10);

    border-radius: 999px;

    background: rgba(255,255,255,.68);

    color: #6d5b7e;

    font-size: 11px;

    cursor: pointer;

    transition: .25s ease;

}


.rs-message-reactions button:hover {

    transform: translateY(-1px);

    background: #ffffff;

    border-color: rgba(113,49,201,.22);

    box-shadow:
        0 5px 15px rgba(113,49,201,.08);

}


/* =========================================================
   COMPOSER
========================================================= */

.rs-community-composer {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 0 24px 14px;

    padding: 8px;

    border-radius: 999px;

    background: rgba(255,255,255,.78);

    border: 1px solid rgba(112,65,180,.12);

    box-shadow:
        0 8px 25px rgba(80,40,130,.07);

}


.rs-composer-avatar {

    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eee5ff;

    color: #7131c9;

}


.rs-community-input {

    flex: 1;

    min-width: 0;

    height: 40px;

    padding: 0 8px;

    border: 0;

    outline: 0;

    background: transparent;

    color: #3f3150;

    font-size: 14px;

}


.rs-community-input::placeholder {

    color: #aaa0b5;

}


.rs-emoji-button {

    width: 38px;
    height: 38px;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 18px;

    border-radius: 50%;

}


.rs-emoji-button:hover {

    background: #f3eaff;

}


.rs-community-send {

    height: 40px;

    padding: 0 20px;

    border: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #8138e7,
            #6924c8
        );

    color: #ffffff;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(105,36,200,.22);

    transition: .25s ease;

}


.rs-community-send:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(105,36,200,.28);

}


/* =========================================================
   EMOJI PICKER
========================================================= */

.rs-emoji-picker {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    position: absolute;

    right: 105px;

    bottom: 82px;

    width: 250px;

    padding: 12px;

    border-radius: 18px;

    background: rgba(255,255,255,.96);

    border: 1px solid rgba(112,65,180,.15);

    box-shadow:
        0 20px 45px rgba(60,30,100,.15);

    z-index: 20;

}


.rs-emoji-picker button {

    width: 34px;
    height: 34px;

    border: 0;

    border-radius: 8px;

    background: transparent;

    cursor: pointer;

    font-size: 18px;

}


.rs-emoji-picker button:hover {

    background: #f1e8ff;

}


/* =========================================================
   FOOT NOTE
========================================================= */

.rs-community-footer-note {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    padding: 0 28px 22px;

    color: #806f91;

    font-size: 12px;

}


.rs-community-footer-note a {

    color: #7131c9;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

}


.rs-community-footer-note a:hover {

    text-decoration: underline;

}


/* =========================================================
   SIDEBAR
========================================================= */

.rs-community-sidebar {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.rs-members-card,
.rs-community-info-card,
.rs-sanctum-card {

    border-radius: 24px;

    padding: 24px;

}


/* =========================================================
   MEMBERS HEADER
========================================================= */

.rs-members-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 20px;

}


.rs-members-header h3,
.rs-community-info-card h3,
.rs-sanctum-card h3 {

    margin: 0 0 5px;

    color: #3d2853;

    font-size: 18px;

    font-weight: 700;

}


.rs-members-header p {

    margin: 0;

    color: #9586a3;

    font-size: 12px;

    line-height: 1.5;

}


.rs-members-count {

    display: flex;

    align-items: center;

    gap: 5px;

    color: #7131c9;

    font-size: 12px;

    white-space: nowrap;

}


/* =========================================================
   MEMBER LIST
========================================================= */

.rs-members-list {

    display: flex;

    flex-direction: column;

    gap: 14px;

}


.rs-member {

    display: flex;

    align-items: center;

    gap: 11px;

}


.rs-member-avatar {

    position: relative;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #7131c9;

    background: #f0e7ff;

}


.rs-member-pink {

    color: #be185d;

    background: #ffeaf5;

}


.rs-member-green {

    color: #15803d;

    background: #e5faec;

}


.rs-member-purple {

    color: #7c3aed;

    background: #eee7ff;

}


.rs-member-blue {

    color: #2563eb;

    background: #e7f0ff;

}


.rs-member-brand {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8140df,
            #6424bb
        );

}


.rs-member-status {

    position: absolute;

    right: -1px;
    bottom: 1px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #22c55e;

    border: 2px solid #ffffff;

}


.rs-member-info {

    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;

}


.rs-member-info strong {

    color: #453154;

    font-size: 13px;

}


.rs-member-info span {

    color: #9a8ba7;

    font-size: 11px;

    margin-top: 2px;

}


.rs-admin-badge {

    padding: 4px 8px;

    border-radius: 999px;

    background: #eee1ff;

    color: #7131c9;

    font-size: 10px;

    font-weight: 700;

}


/* =========================================================
   VIEW MEMBERS
========================================================= */

.rs-view-members {

    width: 100%;

    margin-top: 20px;

    padding: 11px 15px;

    border: 1px solid rgba(113,49,201,.10);

    border-radius: 14px;

    background: rgba(255,255,255,.55);

    color: #7131c9;

    font-weight: 700;

    cursor: pointer;

    transition: .25s ease;

}


.rs-view-members span {

    margin-left: 5px;

}


.rs-view-members:hover {

    background: #ffffff;

    transform: translateY(-1px);

}


/* =========================================================
   INFO CARDS
========================================================= */

.rs-info-icon {

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #eadcff,
            #f4eaff
        );

    font-size: 21px;

}


.rs-community-info-card p,
.rs-sanctum-card p {

    margin: 0 0 14px;

    color: #74667f;

    font-size: 13px;

    line-height: 1.65;

}


.rs-community-info-card a,
.rs-sanctum-card a {

    color: #7131c9;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

}


.rs-community-info-card a:hover,
.rs-sanctum-card a:hover {

    text-decoration: underline;

}


.rs-sanctum-card {

    background:
        linear-gradient(
            135deg,
            rgba(239,224,255,.75),
            rgba(255,255,255,.60)
        );

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .rs-community-layout {

        grid-template-columns:
            minmax(0, 1fr)
            280px;

    }

}


@media (max-width: 900px) {

    .rs-community-layout {

        grid-template-columns: 1fr;

    }

    .rs-community-sidebar {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .rs-members-card {

        grid-column: 1 / -1;

    }

}


@media (max-width: 650px) {

    .rs-community-section {

        padding: 45px 0;

    }

    .rs-community-chat-header {

        flex-direction: column;

        align-items: flex-start;

        padding: 22px;

    }

    .rs-community-title h2 {

        font-size: 25px;

    }

    .rs-community-messages {

        height: 470px;

        padding: 5px 17px;

    }

    .rs-community-message {

        padding: 17px 0;

    }

    .rs-community-composer {

        margin-left: 14px;
        margin-right: 14px;

    }

    .rs-community-send {

        padding: 0 15px;

    }

    .rs-community-footer-note {

        flex-direction: column;

        align-items: flex-start;

        padding-left: 18px;
        padding-right: 18px;

    }

    .rs-community-sidebar {

        display: flex;

    }

    .rs-members-card,
    .rs-community-info-card,
    .rs-sanctum-card {

        padding: 20px;

    }

}


@media (max-width: 480px) {

    .rs-community-title-icon {

        width: 42px;
        height: 42px;

    }

    .rs-community-title h2 {

        font-size: 22px;

    }

    .rs-community-title p {

        font-size: 12px;

    }

    .rs-community-online {

        width: 100%;

        justify-content: center;

    }

    .rs-community-avatar {

        flex-basis: 36px;

        width: 36px;
        height: 36px;

    }

    .rs-message-content p {

        font-size: 13px;

    }

    .rs-community-input {

        font-size: 13px;

    }

    .rs-emoji-button {

        display: none;

    }

}