/* Grupo Social Interactions Module - Luxury / Premium UI */
:root {
    --grsi-bg: rgba(11, 9, 28, 0.82);
    --grsi-bg-soft: rgba(255, 255, 255, 0.075);
    --grsi-border: rgba(255, 221, 154, 0.22);
    --grsi-border-strong: rgba(255, 221, 154, 0.42);
    --grsi-gold: #f5d37d;
    --grsi-gold-soft: rgba(245, 211, 125, 0.18);
    --grsi-pink: #ff74b8;
    --grsi-purple: #9b7cff;
    --grsi-blue: #72e7ff;
    --grsi-text: #fff8e7;
    --grsi-muted: rgba(255, 255, 255, 0.72);
    --grsi-shadow: 0 22px 65px rgba(0, 0, 0, 0.36);
}

.gr-social-home-section,
.gr-social-home-section * {
    box-sizing: border-box;
}

.gr-social-home-section {
    width: min(1200px, calc(100% - 28px));
    margin: 42px auto;
    position: relative;
    z-index: 1;
}

.gr-social-home-shell {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--grsi-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 217, 134, 0.22), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(155, 124, 255, 0.20), transparent 32%),
        linear-gradient(135deg, rgba(18, 12, 43, 0.92), rgba(8, 9, 27, 0.88));
    box-shadow: var(--grsi-shadow);
    backdrop-filter: blur(16px);
}

.gr-social-home-shell:before {
    content: "";
    position: absolute;
    inset: -90px;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(245, 211, 125, 0.7) 0 1px, transparent 1.5px);
    background-size: 78px 78px, 112px 112px;
    opacity: 0.17;
    pointer-events: none;
    animation: grsiStars 34s linear infinite;
}

@keyframes grsiStars {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    to { transform: translate3d(-40px, -30px, 0) rotate(1deg); }
}

.gr-social-home-heading {
    position: relative;
    max-width: 760px;
    margin-bottom: 24px;
}

.gr-social-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--grsi-border-strong);
    border-radius: 999px;
    color: var(--grsi-gold);
    background: rgba(255, 255, 255, 0.065);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gr-social-home-heading h2 {
    margin: 14px 0 10px;
    color: var(--grsi-text);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(245, 211, 125, 0.25);
}

.gr-social-home-heading p {
    margin: 0;
    color: var(--grsi-muted);
    font-size: 15px;
    line-height: 1.75;
}

.gr-social-home-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gr-social-user-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.gr-social-user-card:hover {
    transform: translateY(-5px);
    border-color: var(--grsi-border-strong);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.gr-social-card-cover {
    height: 82px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gr-social-card-cover:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 24, 0.16), rgba(8, 8, 24, 0.88));
}

.gr-social-card-body {
    padding: 0 16px 16px;
    margin-top: -32px;
    position: relative;
    text-align: center;
}

.gr-social-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 3px solid rgba(245, 211, 125, 0.55);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 28px rgba(245, 211, 125, 0.26);
    cursor: pointer;
}

.gr-social-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 19px;
    display: block;
}

.gr-social-online-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid #100d24;
    background: #9a9a9a;
}

.gr-social-online-dot.is-online {
    background: #37f39f;
    box-shadow: 0 0 18px rgba(55, 243, 159, 0.9);
}

.gr-social-card-body h3 {
    margin: 10px 0 4px;
    color: var(--grsi-text);
    font-size: 17px;
    font-weight: 800;
}

.gr-social-card-body p {
    margin: 0;
    color: var(--grsi-muted);
    font-size: 12px;
}

.gr-social-card-stats,
.gr-social-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.gr-social-card-stats span,
.gr-social-profile-stats button,
.gr-social-chat-stat {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--grsi-muted);
    padding: 8px 6px;
    font-size: 11px;
}

.gr-social-card-stats strong,
.gr-social-profile-stats strong,
.gr-social-chat-stat strong {
    display: block;
    color: var(--grsi-gold);
    font-size: 15px;
    line-height: 1;
}

.gr-social-card-actions,
.gr-social-profile-actions,
.gr-chat-social-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.gr-social-action,
.gr-social-login-required,
.gr-send-gift-submit {
    border: 1px solid rgba(245, 211, 125, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 211, 125, 0.17), rgba(155, 124, 255, 0.13));
    color: var(--grsi-text);
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gr-social-action:hover,
.gr-social-login-required:hover,
.gr-send-gift-submit:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 211, 125, 0.6);
    box-shadow: 0 12px 28px rgba(245, 211, 125, 0.14);
    color: #fff;
}

.gr-social-action.is-active {
    color: #140f24;
    border-color: rgba(245, 211, 125, 0.85);
    background: linear-gradient(135deg, #f5d37d, #ffefb7);
}

.gr-social-action.is-loading {
    opacity: .65;
    pointer-events: none;
}

.gr-social-login-required {
    width: 100%;
    min-height: 42px;
}

.gr-chat-social-bar {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 211, 125, 0.15), transparent 42%),
        rgba(255, 255, 255, 0.045);
}

.gr-chat-social-bar.is-visible {
    display: flex;
}

.gr-chat-social-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gr-social-chat-stat {
    min-width: 58px;
    text-align: center;
    padding: 7px 8px;
}

.gr-chat-social-actions .gr-social-action {
    min-height: 34px;
    padding: 0 10px;
}

.gr-social-profile-panel {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--grsi-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(245, 211, 125, 0.17), transparent 34%),
        linear-gradient(135deg, rgba(23, 16, 50, 0.86), rgba(11, 10, 31, 0.78));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.gr-social-profile-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--grsi-text);
    font-weight: 900;
}

.gr-social-profile-title span {
    color: var(--grsi-gold);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gr-social-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gr-social-profile-stats button {
    cursor: pointer;
    text-align: left;
}

.gr-social-profile-actions .gr-social-action {
    flex: 1 1 130px;
}

.gr-social-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999999;
    max-width: 340px;
    padding: 13px 16px;
    border: 1px solid var(--grsi-border-strong);
    border-radius: 18px;
    background: rgba(16, 12, 36, 0.94);
    color: var(--grsi-text);
    box-shadow: var(--grsi-shadow);
    backdrop-filter: blur(14px);
    animation: grsiToastIn .22s ease both;
}

@keyframes grsiToastIn {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.gr-social-modal-content {
    border: 1px solid var(--grsi-border);
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 211, 125, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(18, 12, 43, 0.98), rgba(7, 8, 24, 0.98));
    color: var(--grsi-text);
    border-radius: 24px;
    box-shadow: var(--grsi-shadow);
}

.gr-social-modal-hero {
    display: grid;
    gap: 6px;
    place-items: center;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 211, 125, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
}

.gr-social-modal-hero span {
    font-size: 34px;
}

.gr-social-modal-hero small {
    color: var(--grsi-muted);
}

.gr_social_gift_form select,
.gr_social_gift_form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--grsi-text);
    padding: 11px 13px;
    margin: 0 0 13px;
    outline: none;
}

.gr_social_gift_form select option {
    color: #161616;
}

.gr_social_gift_form textarea {
    min-height: 96px;
    resize: vertical;
}

.gr-social-gift-error {
    color: #ffb3b3;
    font-size: 13px;
    margin-bottom: 10px;
}

@media (max-width: 1080px) {
    .gr-social-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .gr-social-home-section { width: calc(100% - 18px); margin: 26px auto; }
    .gr-social-home-shell { padding: 18px; border-radius: 22px; }
    .gr-social-home-grid { grid-template-columns: 1fr; }
    .gr-chat-social-bar { align-items: stretch; flex-direction: column; }
    .gr-chat-social-actions .gr-social-action { flex: 1; }
    .gr-social-profile-stats { grid-template-columns: 1fr; }
    .gr-social-toast { left: 12px; right: 12px; bottom: 12px; }
}

/* Üyeler sayfası: ana sayfadan ayrılmış premium liste alanı */
.grsi_members_page .main_window {
    min-height: 100vh;
}

.grsi-members-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 34px;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 211, 125, 0.24), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(155, 124, 255, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(13, 9, 35, 0.96), rgba(8, 9, 26, 0.92));
    border-bottom: 1px solid rgba(245, 211, 125, 0.18);
    text-align: center;
}

.grsi-members-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.82) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(245,211,125,.72) 0 1px, transparent 1.5px);
    background-size: 84px 84px, 126px 126px;
    opacity: .18;
    pointer-events: none;
}

.grsi-members-hero .container {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.grsi-members-kicker {
    display: inline-flex;
    padding: 8px 16px;
    border: 1px solid rgba(245, 211, 125, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--grsi-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.grsi-members-hero h1 {
    margin: 16px 0 12px;
    color: var(--grsi-text);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.03;
    font-weight: 900;
    text-shadow: 0 0 34px rgba(245, 211, 125, 0.26);
}

.grsi-members-hero p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--grsi-muted);
    font-size: 16px;
    line-height: 1.8;
}

.gr-social-members-section {
    margin-top: 34px;
    margin-bottom: 58px;
}

.gr-social-members-section .gr-social-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gr-social-members-section .gr-social-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .gr-social-members-section .gr-social-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .grsi-members-hero {
        padding-top: 92px;
    }
    .gr-social-members-section .gr-social-home-grid {
        grid-template-columns: 1fr;
    }
}

/* V3: Navbar üyeler linki ve 12'li sayfalama düzeltmeleri */
.grsi-members-menu-item .nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.grsi-members-menu-icon {
    display: inline-flex;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(245, 211, 125, .35));
}

.grsi-members-pagination {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.grsi-page-link,
.grsi-page-dots {
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 211, 125, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--grsi-text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.grsi-page-link:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(245, 211, 125, 0.62);
    background: linear-gradient(135deg, rgba(245, 211, 125, 0.20), rgba(155, 124, 255, 0.16));
}

.grsi-page-link.is-active {
    color: #160f27;
    border-color: rgba(245, 211, 125, 0.9);
    background: linear-gradient(135deg, #f5d37d, #fff0bd);
}

.grsi-page-link.is-disabled {
    opacity: .42;
    cursor: not-allowed;
    pointer-events: none;
}

.grsi-page-prev,
.grsi-page-next {
    min-width: 104px;
}

.grsi-page-dots {
    min-width: 28px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--grsi-muted);
}

/* Bootstrap modal çalışmadığı landing kurulumlarında hediye penceresini yine açar. */
#gr_social_gift_modal.grsi-modal-visible {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .72);
    opacity: 1 !important;
    overflow-y: auto;
}

#gr_social_gift_modal.grsi-modal-visible .modal-dialog {
    width: min(520px, 100%);
    margin: 0;
    transform: none !important;
}

@media (max-width: 575px) {
    .grsi-page-prev,
    .grsi-page-next {
        min-width: 100%;
    }
    .grsi-members-pagination {
        gap: 7px;
    }
}
