/* Kullanıcı hesabı: düğmeler, giriş/kayıt penceresi, avatarlar */

.account-btn {
    background-color: #3d2c22;
    color: #f0ece9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.account-btn:hover {
    background-color: #4e392c;
}

.account-btn.ghost {
    background: none;
}

.account-btn.ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.account-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.account-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(209, 199, 190, 0.5);
}

/* Görünen adın yanındaki soluk "@kullanıcıadı" ve yazılardaki @bahsetme bağlantısı */
.handle {
    color: var(--muted, #ddd3c9);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.mention {
    color: #deb878;
    text-decoration: none;
}

.mention:hover {
    text-decoration: underline;
}

/* Avatarlar: yüklenen fotoğraf ya da baş harfli renkli daire */
.avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    user-select: none;
}

.avatar-p0 { background: linear-gradient(135deg, #c0392b, #6e1f17); }
.avatar-p1 { background: linear-gradient(135deg, #d68a2e, #7a4512); }
.avatar-p2 { background: linear-gradient(135deg, #b9a23a, #5e5114); }
.avatar-p3 { background: linear-gradient(135deg, #4f9a5e, #1f4f2a); }
.avatar-p4 { background: linear-gradient(135deg, #3a8f9a, #164a52); }
.avatar-p5 { background: linear-gradient(135deg, #4a6fb5, #1d3361); }
.avatar-p6 { background: linear-gradient(135deg, #8a5bb5, #43255f); }
.avatar-p7 { background: linear-gradient(135deg, #b5527f, #5f1f3d); }

/* Giriş / kayıt penceresi */
/* margin: auto pencereyi ekranın ortasına alır (sayfadaki "* { margin: 0 }" bunu sıfırlıyordu) */
.auth-dialog {
    width: min(380px, calc(100vw - 32px));
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background-color: #1f1a17;
    color: #f0ece9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.auth-dialog::backdrop {
    background-color: rgba(10, 8, 7, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-tabs button {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #d1c7be;
    font: inherit;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    padding: 8px 0 10px;
    cursor: pointer;
}

.auth-tabs button[aria-selected="true"] {
    color: #ffffff;
    border-bottom-color: #deb878;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #d1c7be;
}

.auth-form label[hidden] {
    display: none;
}

.auth-form input {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
}

.auth-form input:focus-visible {
    outline: none;
    border-color: #d1c7be;
    box-shadow: 0 0 0 2px rgba(209, 199, 190, 0.3);
}

/* Şifre kutusunun sağındaki göz (auth.js addEye) */
.pw-wrap {
    position: relative;
    display: flex;
}

.pw-wrap input {
    flex: 1;
    min-width: 0;
    padding-right: 46px;
}

.pw-eye {
    position: absolute;
    top: 50%;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: none;
    color: #a99c90;
    cursor: pointer;
    transition: color 0.2s;
}

.pw-eye:hover,
.pw-eye[aria-pressed="true"] {
    color: #f0ece9;
}

.pw-eye:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(209, 199, 190, 0.5);
}

.pw-eye svg {
    width: 20px;
    height: 20px;
}

/* Edge'in kendi göz simgesi ikinci bir göz olarak çıkmasın */
input::-ms-reveal {
    display: none;
}

/* Şifre şartları: kayıt sırasında şifre kutusunun altında, yazdıkça işaretlenir */
.auth-rules {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    margin-top: -6px;
    font-size: 0.78rem;
    color: #a99c90;
}

.auth-rules[hidden] {
    display: none;
}

.auth-rules li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    transition: color 0.2s;
}

.auth-rules li::before {
    content: '○';
    flex-shrink: 0;
}

.auth-rules li.ok {
    color: #9fd3a3;
}

.auth-rules li.ok::before {
    content: '✓';
}

.auth-rules li.wide {
    grid-column: 1 / -1;
}

.auth-hint {
    margin-top: -6px;
    font-size: 0.78rem;
    color: #a99c90;
}

.auth-hint:empty,
.auth-error:empty {
    display: none;
}

.auth-error {
    font-size: 0.85rem;
    color: #f0a59a;
}

/* Kayıt olurken gizlilik politikası bağlantısı */
.auth-privacy {
    font-size: 0.78rem;
    color: #a99c90;
}

.auth-privacy[hidden] {
    display: none;
}

.auth-privacy a {
    color: #deb878;
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
