﻿
/* WhatsApp Benzeri Story Stilleri */
.whatsapp-story {
    --wa-green: #25D366;
    --wa-dark: #075E54;
    --wa-light: #128C7E;
    --wa-text: #FFFFFF;
}

/* Modal Arkaplan */
#storyModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

/* Progress Bar - WhatsApp Tarzı */
.story-progress-container {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    z-index: 1080;
    display: flex;
    gap: 5px;
}

.story-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    flex-grow: 1;
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-active {
    background: var(--wa-text);
    height: 100%;
    width: 0%;
}

/* Kullanıcı Bilgi Alanı - WhatsApp Tarzı */
.story-user-info {
    position: absolute;
    top: 40px;
    left: 15px;
    z-index: 1080;
    display: flex;
    align-items: center;
}

.story-user-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--wa-light);
    object-fit: cover;
}

.story-user-name {
    color: var(--wa-text);
    font-size: 16px;
    font-weight: 500;
    margin-left: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Navigasyon Okları - WhatsApp Tarzı */
.story-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1070;
}

    .story-nav-arrow:hover {
        color: var(--wa-green);
    }

#storyPrev {
    left: 5px;
}

#storyNext {
    right: 5px;
}

/* Story İçeriği */
.story-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.story-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* WhatsApp Mesaj Kutusu */
.story-message-box {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 15px;
    z-index: 1080;
}

.story-message-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--wa-text);
    border-radius: 20px;
    padding: 10px 20px;
    outline: none;
}

    .story-message-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

.story-send-button {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wa-green);
    background: none;
    border: none;
    font-size: 20px;
}

/* Kapatma Butonu */
.story-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1080;
    color: var(--wa-text);
    background: none;
    border: none;
    font-size: 24px;
}

/* Hikaye üzerindeki açıklama bandı */
.story-description-overlay {
    position: absolute;
    bottom: 80px; /* Mesaj kutusunun üzerinde kalsın */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 15px;
    z-index: 10;
}

/* Profil resmi yerine geçen baş harf kutusu */
.story-user-letter {
    width: 40px;
    height: 40px;
    background-color: #198754; /* Temanıza uygun yeşil */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
    border: 2px solid white;
}

/* Modal içindeki kullanıcı bilgisi hizalaması */
.story-user-info {
    display: flex;
    align-items: center;
    position: absolute;
    top: 30px;
    left: 15px;
    z-index: 20;
}
