/* Hikaye Çubuğu */
.stories-container {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.stories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.story-thumbnail {
    flex: 0 0 60px;
    text-align: center;
    cursor: pointer;
}
.story-thumbnail a {
    text-decoration: none;
}
.story-photo-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.story-thumbnail.add-story .story-photo-container {
    border-style: dashed;
    border-color: var(--secondary-text);
}
.story-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.story-thumbnail .add-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}
.story-thumbnail .story-username {
    font-size: 0.75rem;
    color: var(--secondary-text);
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hikaye Görüntüleyici */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none; /* JS ile gösterilecek */
    justify-content: center;
    align-items: center;
}
.story-viewer-overlay.active {
    display: flex;
}
.story-viewer-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 95%;
    max-height: 800px;
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.story-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 10;
}
.story-progress-bars {
    display: flex;
    gap: 3px;
    width: 100%;
}
.progress-bar {
    flex-grow: 1;
    height: 3px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar .progress {
    width: 0%;
    height: 100%;
    background-color: #fff;
}
.story-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.story-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.story-info .username {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    flex-grow: 1; /* Eklendi: Kullanıcı adının esneyerek boş alanı doldurmasını sağlar */
    white-space: nowrap; /* Eklendi: Uzun isimlerin alt satıra inmesini engeller */
    overflow: hidden; /* Eklendi: Kapsayıcıdan taşan kısmı gizler */
    text-overflow: ellipsis; /* Eklendi: Taşma durumunda sonuna "..." ekler */
}
.story-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.story-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 11;
}
.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}
.story-nav-prev { left: 10px; }
.story-nav-next { right: 10px; }

.story-delete-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto; /* Sağ tarafa yaslar */
    padding: 0 10px; /* EKLENDİ: Butonun sağına ve soluna boşluk ekler */
    display: none; /* JS ile gösterilecek */
}