/* ============================================
   SOHBETROOM v3.0 - YENİ ÖZELLİK STİLLERİ
   Tepkiler, Hikayeler, Anketler, Seviye/XP,
   Başarımlar, Liderlik, Repost, Mention, Status
   ============================================ */

/* ---- TEPKİLER (REACTIONS) ---- */
.reaction-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.reaction-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.reaction-btn.reacted {
    color: var(--primary);
}

.reaction-btn.reacted[data-type="love"] { color: #EF4444; }
.reaction-btn.reacted[data-type="haha"] { color: #F59E0B; }
.reaction-btn.reacted[data-type="wow"] { color: #F59E0B; }
.reaction-btn.reacted[data-type="sad"] { color: #3B82F6; }
.reaction-btn.reacted[data-type="angry"] { color: #EF4444; }

.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 6px 8px;
    gap: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 100;
    animation: reactionPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-picker.show {
    display: flex;
}

@keyframes reactionPopIn {
    from { transform: scale(0.5) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.reaction-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
}

.reaction-option:hover {
    transform: scale(1.35);
    background: var(--bg-glass);
}

.reaction-option.selected {
    background: var(--bg-glass);
    box-shadow: 0 0 0 2px var(--primary);
}

.reaction-summary {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    background: var(--bg-glass);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reaction-badge .emoji { font-size: 0.95rem; }

/* ---- HİKAYELER (STORIES) ---- */
.stories-container {
    padding: 16px 0;
    margin-bottom: 16px;
}

.stories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.stories-scroll::-webkit-scrollbar { display: none; }

.story-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    scroll-snap-align: start;
    width: 76px;
}

.story-avatar-ring {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), #F59E0B);
    transition: transform 0.2s ease;
}

.story-avatar-ring.seen {
    background: var(--border-glass);
}

.story-avatar-ring:hover {
    transform: scale(1.08);
}

.story-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
}

.story-username {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-add {
    position: relative;
}

.story-add .story-avatar-ring {
    background: var(--bg-glass);
    border: 2px dashed var(--border-glass);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-add-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.2s;
}

.story-add:hover .story-add-icon {
    background: var(--primary);
    color: white;
}

/* Hikaye Görüntüleyici (Modal) */
.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
}

.story-viewer.active { display: flex; }

.story-viewer-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 750px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
}

.story-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.story-progress-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.story-progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-segment .fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.story-progress-segment.completed .fill { width: 100%; }
.story-progress-segment.active .fill { width: 0%; animation: storyProgress 5s linear forwards; }

@keyframes storyProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.story-viewer-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-viewer-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

.story-viewer-user .name {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 12px rgba(139,92,246,0.5);
}

.story-viewer-user .time {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.75rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.story-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 15;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.story-viewer-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 70px;
}

.story-viewer-body.has-image {
    padding: 0;
    position: relative;
}

.story-viewer-body.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text-content {
    text-align: center;
    color: white;
    word-break: break-word;
}

.story-text-content.font-small { font-size: 1rem; }
.story-text-content.font-medium { font-size: 1.4rem; }
.story-text-content.font-large { font-size: 2rem; font-weight: 700; }

/* Resim üzerinde metin overlay */
.story-text-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    text-align: center;
    word-break: break-word;
    z-index: 3;
}
.story-text-overlay.font-small { font-size: 0.9rem; }
.story-text-overlay.font-medium { font-size: 1.1rem; }
.story-text-overlay.font-large { font-size: 1.4rem; font-weight: 700; }

.story-viewer-body.has-image {
    position: relative;
}

/* "Yeni" rozet */
.story-new-badge {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8B5CF6, #D946EF);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Hikaye alt çubuk (başkasının hikayesi) */
.story-footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 12;
}

.story-reply-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.story-reply-input {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.9rem !important;
    outline: none;
    backdrop-filter: blur(8px);
}

.story-reply-input::placeholder { color: rgba(255,255,255,0.6); }
.story-reply-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); }

.story-reply-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #D946EF);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.story-reply-send:active { transform: scale(0.9); }

/* Beğen butonu */
.story-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.story-like-btn .heart-icon { transition: all 0.2s; }
.story-like-btn.liked .heart-icon { fill: #EF4444; stroke: #EF4444; }
.story-like-btn.story-like-pop { animation: storyLikePop 0.4s ease; }
.story-like-count { font-size: 0.7rem; color: rgba(255,255,255,0.8); }

@keyframes storyLikePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Kendi hikayem: silme butonu */
.story-owner-actions {
    position: absolute;
    top: 70px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 12;
}

.story-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}
.story-action-btn:hover { background: rgba(239,68,68,0.6); }
.story-action-btn:active { transform: scale(0.9); }

/* Kendi hikayem: görüntüleyenler bar */
.story-viewers-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 12;
}

.story-viewers-bar button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 20px;
    transition: background 0.2s;
}
.story-viewers-bar button:hover { background: rgba(255,255,255,0.1); }

/* Görüntüleyenler/beğenenler paneli */
.story-people-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60%;
    background: rgba(15,5,32,0.97) !important;
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    display: none;
    flex-direction: column;
    z-index: 20;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #fff !important;
}

.story-people-panel[style*="display: flex"],
.story-people-panel.active {
    display: flex !important;
    flex-direction: column !important;
}

.story-people-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.story-people-title {
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
}

.story-people-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7) !important;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
}

.story-people-list {
    overflow-y: auto;
    flex: 1;
    min-height: 60px;
    max-height: 40vh;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.story-person-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: background 0.15s;
}
.story-person-item:hover { background: rgba(255,255,255,0.05); }

.story-person-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
}

.story-person-info {
    display: flex;
    flex-direction: column;
}

.story-person-name {
    color: #fff !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.story-person-username {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.78rem;
}

.story-viewer-nav {
    position: absolute;
    top: 80px;
    bottom: 70px;
    width: 40%;
    cursor: pointer;
    z-index: 5;
}

.story-viewer-nav.prev { left: 0; }
.story-viewer-nav.next { right: 0; }

/* Hikaye Oluşturma Modal */
.story-create-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.story-create-modal.active { display: flex; }

.story-create-form {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
}

.story-create-form h3 {
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.story-preview {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.story-preview textarea {
    width: 100%;
    background: transparent;
    border: none;
    text-align: center;
    color: inherit;
    font-size: inherit;
    resize: none;
    outline: none;
}

.story-color-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.story-color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.story-color-option:hover,
.story-color-option.active {
    border-color: white;
    transform: scale(1.15);
}

/* ---- ANKETLER (POLLS) ---- */
.poll-container {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.poll-question {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option {
    position: relative;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    background: var(--bg-card);
}

.poll-option:hover {
    border-color: var(--primary);
}

.poll-option.voted {
    border-color: var(--primary);
}

.poll-option-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    transition: width 0.6s ease;
    z-index: 0;
}

.poll-option-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poll-option-text {
    font-size: 0.9rem;
}

.poll-option-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.poll-option.voted .poll-option-check {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-size: 0.7rem;
}

.poll-option-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---- ANKET OLUŞTURMA ---- */
.poll-creator {
    margin-top: 12px;
    padding: 14px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    display: none;
}

.poll-creator.show { display: block; }

.poll-creator input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.poll-creator input::placeholder { color: var(--text-muted); }

.poll-add-option {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 0;
}

.poll-add-option:hover { text-decoration: underline; }

/* ---- SEVİYE / XP ---- */
.user-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(139,92,246,0.15);
    white-space: nowrap;
}

.xp-bar-wrap {
    width: 100%;
    height: 6px;
    background: var(--bg-glass);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.xp-bar-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ---- BAŞARIMLAR ---- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.achievement-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.achievement-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.achievement-card.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.achievement-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.achievement-xp {
    font-size: 0.7rem;
    color: var(--primary);
    margin-top: 6px;
    font-weight: 600;
}

/* ---- LİDERLİK TABLOSU ---- */
.leaderboard-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lb-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lb-tab:hover, .lb-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lb-tab-icon { font-size: 1.1rem; }

.leaderboard-periods {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.lb-period {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.lb-period:hover, .lb-period.active {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.lb-period.active { font-weight: 600; }

.lb-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px 0;
}

.lb-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    min-width: 120px;
    transition: all 0.2s;
}

.lb-podium-item.rank-1 {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(217,70,239,0.1));
    border-color: var(--primary);
}

.lb-medal { font-size: 2rem; }

.lb-avatar-wrap { position: relative; }

.lb-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-glass);
}

.rank-1 .lb-avatar { border-color: #F59E0B; }
.rank-2 .lb-avatar { border-color: #94A3B8; }
.rank-3 .lb-avatar { border-color: #D97706; }

.lb-verified {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.lb-username {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lb-score {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.lb-level {
    font-size: 0.75rem;
    font-weight: 600;
}

.lb-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    transition: background 0.2s;
}

.lb-row:hover { background: rgba(139,92,246,0.08); }

.lb-rank {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 32px;
    color: var(--text-secondary);
}

.lb-row-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.lb-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.lb-row-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.lb-row-username {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lb-row-level {
    font-size: 0.8rem;
    font-weight: 600;
}

.lb-row-score {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
}

/* ---- REPOST ---- */
.repost-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.repost-header i { color: var(--primary); }

.repost-original {
    margin: 8px 16px 0;
    padding: 12px;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: var(--bg-glass);
}

.repost-original-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.repost-original-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.repost-original-user .name {
    font-weight: 600;
    font-size: 0.85rem;
}

.repost-quote {
    padding: 8px 16px;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
    margin: 8px 16px;
}

.repost-btn {
    position: relative;
}

.repost-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 8px;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    min-width: 180px;
    z-index: 50;
}

.repost-menu.show { display: block; }

.repost-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: background 0.15s;
}

.repost-menu-item:hover {
    background: var(--bg-glass);
}

/* ---- MENTION & HASHTAG ---- */
.mention-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.mention-link:hover {
    text-decoration: underline;
}

.hashtag-link {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
}

.hashtag-link:hover {
    text-decoration: underline;
}

/* ---- KULLANICI DURUMU (STATUS) ---- */
.user-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-status .status-emoji { font-size: 0.85rem; }

.status-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.status-modal.active { display: flex; }

.status-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
}

.status-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.status-emoji-option {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    background: var(--bg-glass);
}

.status-emoji-option:hover,
.status-emoji-option.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ---- ANONİM GÖNDERİ ---- */
.anonymous-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.anonymous-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ---- PROFİL MÜZİK ---- */
.profile-music {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-top: 12px;
}

.profile-music-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    animation: musicSpin 3s linear infinite;
    flex-shrink: 0;
}

.profile-music-icon.paused { animation-play-state: paused; }

@keyframes musicSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-music-info {
    flex: 1;
    min-width: 0;
}

.profile-music-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-music-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.profile-music-controls {
    display: flex;
    gap: 4px;
}

.profile-music-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.profile-music-btn:hover {
    background: var(--primary);
    color: white;
}

/* ---- SESLİ MESAJ ---- */
.voice-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-glass);
    border-radius: 16px;
    min-width: 200px;
}

.voice-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.voice-waveform {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.voice-waveform-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.5;
}

.voice-duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 35px;
}

.voice-record-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.voice-record-btn:hover {
    color: var(--primary);
    background: var(--bg-glass);
}

.voice-record-btn.recording {
    color: #EF4444;
    animation: recordPulse 1.5s ease infinite;
}

@keyframes recordPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- GIF PICKER ---- */
.gif-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px 16px 0 0;
    max-height: 350px;
    overflow: hidden;
    display: none;
    z-index: 100;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
}

.gif-picker.show { display: block; }

.gif-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.gif-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.gif-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s;
}

.gif-item:hover { transform: scale(0.96); }

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- ZAMANLANMIŞ GÖNDERİ ---- */
.schedule-picker {
    display: none;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: 10px;
    margin-top: 8px;
    gap: 8px;
}

.schedule-picker.show { display: flex; flex-wrap: wrap; }

.schedule-picker input {
    padding: 8px 12px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ---- GELİŞMİŞ ARAMA ---- */
.search-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.search-filter-btn:hover,
.search-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .lb-podium {
        gap: 8px;
        padding: 10px 0;
    }
    
    .lb-podium-item {
        min-width: 90px;
        padding: 14px 10px;
    }
    
    .lb-podium-item.rank-1 {
        transform: scale(1.04);
    }
    
    .lb-avatar {
        width: 48px;
        height: 48px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .achievement-card {
        padding: 12px;
    }
    
    .story-viewer-content {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .story-viewer-body {
        min-height: 70vh;
        padding: 70px 16px 40px;
    }

    .story-viewer-nav {
        width: 30%;
    }

    .story-create-modal {
        padding: 0;
        align-items: flex-end;
    }

    .story-create-form {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px 16px;
    }

    .story-preview {
        max-height: 200px;
        min-height: 150px;
    }

    .stories-container {
        padding: 10px 0;
        margin-bottom: 8px;
    }

    .stories-scroll {
        padding: 4px 8px;
        gap: 8px;
    }

    .story-item {
        width: 68px;
    }

    .story-avatar-ring {
        width: 60px;
        height: 60px;
    }

    .story-add-icon {
        width: 54px;
        height: 54px;
    }

    .story-username {
        font-size: 0.65rem;
        max-width: 68px;
    }
    
    .reaction-picker {
        left: -10px;
    }

    /* Status Modal Mobile */
    .status-modal {
        padding: 0;
        align-items: flex-end;
    }

    .status-modal-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .status-emoji-picker {
        gap: 6px;
    }

    .status-emoji-option {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    /* Leaderboard Mobile */
    .leaderboard-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .lb-tab {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 8px 12px;
        min-width: auto;
    }

    .leaderboard-periods {
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .lb-period {
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .lb-podium {
        gap: 6px;
        padding: 16px 4px;
    }

    .lb-podium-item {
        min-width: 80px;
        padding: 10px 6px;
    }

    .lb-avatar {
        width: 52px;
        height: 52px;
    }

    .lb-name {
        font-size: 0.78rem;
    }

    .lb-username {
        font-size: 0.68rem;
    }

    .lb-score {
        font-size: 0.72rem;
    }

    .lb-medal {
        font-size: 1.5rem;
    }

    .lb-row {
        padding: 10px 12px;
        gap: 8px;
    }

    .lb-row-avatar {
        width: 36px;
        height: 36px;
    }

    .lb-row-name {
        font-size: 0.82rem;
    }

    .lb-row-username {
        font-size: 0.7rem;
    }

    .lb-row-score {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .lb-podium-item {
        min-width: 80px;
        padding: 10px 8px;
    }
    
    .lb-medal { font-size: 1.5rem; }
    
    .lb-avatar {
        width: 40px;
        height: 40px;
    }
    
    .lb-name { font-size: 0.8rem; }
    .lb-username { font-size: 0.7rem; }
    .lb-score { font-size: 0.75rem; }
}

/* ---- USER LEVEL BADGE ---- */
.user-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

/* ---- POLL CREATOR (Composer) ---- */
.poll-creator {
    display: none;
    padding: 12px 16px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-glass);
    border-radius: 0 0 12px 12px;
}

.poll-creator.show { display: block; }

.poll-creator input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.poll-options-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.poll-add-option {
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    padding: 4px 0;
    font-weight: 500;
}

.poll-add-option:hover { text-decoration: underline; }

/* ---- ANON TOGGLE ---- */
.composer-tool.anon-active,
.composer-tool:has(.anon-toggle:checked) {
    background: var(--primary);
    color: white;
    border-radius: 8px;
}

/* ---- STORY CREATE/VIEWER duplicates removed, using definitions above ---- */

/* ---- REACTION SUMMARY ---- */
.reaction-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--bg-glass);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reaction-badge .emoji { font-size: 0.9rem; }

/* ---- XP BAR ---- */
.xp-bar-wrap {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.xp-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ---- STORY BAR (Feed) ---- */
.story-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    min-width: 72px;
    text-decoration: none;
}

.story-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F59E0B);
}

.story-user-avatar.seen {
    background: var(--border-glass);
}

.story-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
}

.story-user-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.story-add-btn {
    position: relative;
    cursor: pointer;
}

.story-add-btn .story-plus {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
    border: 2px solid var(--bg-card);
}

/* ============================================
   TOAST BİLDİRİM
   ============================================ */
.toast-notification {
    position: fixed !important;
    top: 90px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 24px !important;
    border-radius: 14px !important;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 99999 !important;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 380px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
}

.toast-notification.show {
    transform: translateX(0) !important;
}

.toast-success {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #4ADE80 !important;
}

.toast-error {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
}

.toast-info {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #A78BFA !important;
}

.toast-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #FBBF24 !important;
}

@media (max-width: 768px) {
    .reaction-bar {
        gap: 2px;
    }

    .reaction-btn {
        padding: 6px 8px;
        font-size: 0.82rem;
        gap: 4px;
    }

    .reaction-emoji {
        font-size: 1rem;
    }

    .reaction-label {
        font-size: 0.78rem;
    }

    .reaction-count {
        font-size: 0.78rem;
    }

    .reaction-option {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .bookmark-btn {
        padding: 6px;
    }

    .repost-btn .post-action-btn {
        padding: 6px 2px;
    }
}

@media (max-width: 480px) {
    .reaction-btn {
        padding: 5px 6px;
        font-size: 0.78rem;
        gap: 3px;
    }

    .reaction-option {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .toast-notification {
        right: 12px !important;
        left: 12px !important;
        max-width: calc(100% - 24px) !important;
        top: 76px !important;
    }
}
