/* Hesap sayfası (giriş, kayıt, şifre, üye merkezi, ayarlar) ve üye oyun listeleri. */

.auth-page-shell { margin-top: 24px; }
.auth-page-card { border: 0; background: transparent; }
.auth-page-top-shell { padding: 0; }
.auth-panel-card { padding: 0; border: 0; background: transparent; }

.auth-card-head { min-width: 0; margin-bottom: 20px; }
.auth-card-head h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.18; color: #5c2f75; }
.auth-card-head p, .auth-form-footnote { margin: 0; font-size: 14px; line-height: 1.7; color: #56485f; }

.auth-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 0 14px;
    border: 1px solid rgba(108, 51, 145, .12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6c3391;
    background: rgba(108, 51, 145, .1);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.auth-form-footnote { margin-top: 14px; }
.auth-form-footnote--center { text-align: center; }
.auth-form-footnote a { font-weight: 700; text-decoration: none; color: #6c3391; }
.auth-form-footnote a:hover { color: #4b2364; }

.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 8px; }
.auth-field span, .auth-check span { font-size: 14px; font-weight: 700; color: #5b4766; }

.auth-field input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(116, 63, 149, .18);
    border-radius: 16px;
    font-size: 15px;
    color: #2f2337;
    background: #fcfbff;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.auth-field input:focus { border-color: rgba(108, 51, 145, .48); background: #fff; }

.auth-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 140px;
    padding: 14px 16px;
    border: 1px solid rgba(116, 63, 149, .18);
    border-radius: 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #2f2337;
    background: #fcfbff;
    outline: none;
    resize: vertical;
    transition: border-color .2s ease, background .2s ease;
}

.auth-field textarea:focus { border-color: rgba(108, 51, 145, .48); background: #fff; }

.auth-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.auth-check { display: inline-flex; align-items: center; gap: 10px; margin-top: 2px; }
.auth-check input { width: 18px; height: 18px; accent-color: #6c3391; }

.auth-alert { margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; font-size: 14px; font-weight: 700; }
.auth-alert-info { color: #5a2874; background: rgba(123, 31, 162, .08); border: 1px solid rgba(123, 31, 162, .14); }
.auth-alert-error { color: #9b2f2f; background: rgba(220, 85, 85, .1); border: 1px solid rgba(220, 85, 85, .14); }
.auth-alert-success { color: #2b6b3b; background: rgba(77, 177, 98, .12); border: 1px solid rgba(77, 177, 98, .16); }

.auth-page-top-shell--member { padding: 26px; }
.auth-page-layout--guest { max-width: 760px; margin: 0 auto; }
.auth-page-layout--guest-solo { max-width: 620px; }
.auth-page-panel--guest-solo { padding: 28px; }
.auth-page-panel--guest-solo .auth-switcher { max-width: none; margin-bottom: 22px; }

.auth-page-layout--member { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }

.member-solo { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.member-solo .member-sidebar-card { position: static; align-self: stretch; }
.member-welcome { text-align: center; }
.member-welcome-title { margin: 0; font-size: 28px; line-height: 1.15; color: var(--purple-2); }

.auth-page-panel--guest, .member-sidebar-card, .member-content-card {
    border: 1px solid rgba(120, 42, 160, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
}

.auth-page-panel--guest, .member-content-card { padding: 24px; }
.member-sidebar-card { position: sticky; top: 24px; align-self: start; padding: 18px; }
.member-sidebar-meta h1, .member-content-head h2 { color: var(--text-dark); }

.auth-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin-bottom: 18px;
}

.auth-switcher-link, .auth-submit-button, .auth-submit-button-secondary, .auth-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    color: #fff4c7;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, filter .2s ease;
}

.auth-submit-button, .auth-submit-button-secondary, .auth-link-button { width: 100%; }
.auth-switcher-link { min-width: 0; }

.auth-switcher-link:hover, .auth-switcher-link:focus-visible,
.auth-submit-button:hover, .auth-submit-button:focus-visible,
.auth-submit-button-secondary:hover, .auth-submit-button-secondary:focus-visible,
.auth-link-button:hover, .auth-link-button:focus-visible {
    transform: translate3d(0, -1px, 0);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, var(--purple-3) 100%);
}

.auth-switcher-link:active, .auth-submit-button:active,
.auth-submit-button-secondary:active, .auth-link-button:active { transform: translate3d(0, 0, 0); }

.auth-switcher-link.is-active { border-color: var(--mustard-line); }
.auth-switcher-link:not(.is-active) { color: #5a2874; background: #fff; }

.auth-switcher-link:not(.is-active):hover, .auth-switcher-link:not(.is-active):focus-visible {
    border-color: #ffd15a;
    color: #fff4c7;
    background: linear-gradient(180deg, #9f32c7 0%, var(--purple-3) 100%);
}

.member-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(120, 42, 160, .1);
}

.member-sidebar-avatar { flex-shrink: 0; width: 96px; height: 96px; }

.member-sidebar-avatar img, .member-sidebar-avatar .avatar {
    display: block;
    width: 96px;
    height: 96px;
    border: 2px solid rgba(123, 31, 162, .14);
    border-radius: 50%;
    object-fit: cover;
}

.member-sidebar-meta { display: flex; flex-direction: column; gap: 5px; }
.member-sidebar-meta p { margin: 0; color: rgba(58, 36, 76, .72); }

.member-sidebar-display-name { display: block; }

.member-sidebar-meta p.member-sidebar-username {
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.member-sidebar-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }

.member-stat-card {
    min-height: 76px;
    padding: 12px 10px;
    border: 1px solid rgba(120, 42, 160, .1);
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 236, 251, .88));
}

.member-stat-card strong { display: block; margin-bottom: 6px; font-size: 22px; line-height: 1; color: #5a2874; }
.member-stat-card span { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; color: rgba(58, 36, 76, .78); word-break: break-word; }

.member-sidebar-nav { display: grid; gap: 9px; }

.member-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(120, 42, 160, .1);
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    transition: transform .18s ease, border-color .18s ease;
}

.member-sidebar-link:hover { transform: translate3d(0, -1px, 0); border-color: rgba(236, 181, 0, .34); }

.member-sidebar-link.is-active {
    border-color: var(--mustard-line);
    color: #fff4c7;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    box-shadow: 0 6px 16px rgba(116, 32, 142, .28);
}

.member-sidebar-link.is-active .gsc-menu-icon { color: #ffd15a; }

.member-content-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.member-content-head p, .member-empty-state p { color: rgba(58, 36, 76, .76); }

.member-empty-state {
    padding: 28px;
    border: 1px dashed rgba(120, 42, 160, .2);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 239, 252, .82));
}

.member-empty-state h3 { margin: 0 0 8px; color: #5a2874; }
.member-empty-state p { margin: 0; }
.member-empty-actions { margin-top: 16px; }

.member-pagination .page-numbers { min-width: 42px; }

.member-archive-section > .section-head p,
.member-archive-page .section-head-member p { color: rgba(255, 255, 255, .88); }

.settings-stack { display: grid; gap: 18px; max-width: 500px; margin-inline: auto; }

#gorunen-ad, #avatar { scroll-margin-top: 90px; }

.settings-group {
    padding: 20px;
    border: 1px solid rgba(108, 51, 145, .14);
    border-radius: 16px;
    background: #fbf8fd;
}

.settings-group-head { margin-bottom: 16px; }
.settings-group-head h3 { margin: 0 0 4px; font-size: 17px; color: #5a2874; }
.settings-group-head p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(58, 36, 76, .72); }

.settings-form { display: grid; gap: 14px; max-width: 460px; }

.settings-avatar { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.settings-avatar-preview img, .settings-avatar-preview .avatar {
    width: 96px;
    height: 96px;
    border: 3px solid rgba(108, 51, 145, .2);
    border-radius: 50%;
    object-fit: cover;
}

.settings-avatar-forms { display: grid; gap: 16px; align-content: start; width: 100%; }

@media (max-width: 991px) {
    .auth-page-layout--member { grid-template-columns: minmax(0, 1fr); }
    .member-sidebar-card { position: static; }
    .auth-page-layout--member > .member-content-card { order: 1; }
    .auth-page-layout--member > .member-sidebar-card { order: 2; }
}

@media (max-width: 767px) {
    .auth-page-shell { margin-top: 18px; }
    .auth-card-head h2 { font-size: 24px; }
    .auth-field-row { grid-template-columns: 1fr; }
    .auth-switcher { max-width: none; }
    .auth-page-panel--guest, .member-content-card, .member-sidebar-card { padding: 18px; }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #8f7c98;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(116, 63, 149, .14);
}

.auth-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 0 22px;
    border: 1px solid rgba(116, 63, 149, .22);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #3c4043;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}
.auth-google-button:hover,
.auth-google-button:focus-visible {
    border-color: rgba(116, 63, 149, .42);
    background: #fcfbff;
}
.auth-google-logo { flex: 0 0 auto; display: block; }

.member-sidebar-link:hover .gsc-menu-icon { color: var(--purple-3); }
.member-sidebar-profile > * { min-width: 0; }
.member-sidebar-display-name, .member-sidebar-username { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Turnstile: dar ekranda sabit genişlikli kutucuk küçültülür, taşan kısım kesilir. */
.gsc-turnstile { overflow: hidden; }

@media (max-width: 430px) {
    .gsc-turnstile .cf-turnstile { transform: scale(var(--gsc-ts-scale, .78)); transform-origin: top left; }
    .auth-panel-card { --gsc-ts-scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-switcher-link, .auth-submit-button, .auth-submit-button-secondary, .auth-link-button, .member-sidebar-link { transition: none !important; animation: none !important; }
}

/* Dar ekranda kabuğun iç boşluğu oyun sayfasıyla aynıdır (3.x'te dar ekran kuralları sayfa stillerinden sonra gelirdi). */
@media (max-width: 768px) {
    .auth-page-top-shell, .auth-page-top-shell--member { padding: 14px 14px 18px; }
}

@media (max-width: 768px) {
    .member-pagination .page-numbers { min-width: 38px; }
}
