/* --- AzLove Social Düşüncələr Stil Paketi --- */

/* 1. Qlobal Box-Sizing (Kənara çıxma problemini kökündən həll edir) */
.thought-card, .thought-card *, .az-form-box, .az-form-box * {
    box-sizing: border-box;
}

.thought-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin: 12px 0;
    border: 1px solid #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Uzun sözlərin kartı cırmaması üçün */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.thought-card:first-child {
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}


.thought-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.author-info b {
    color: #2c3e50;
    font-size: 15px;
}

.comment-item {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    transition: background 0.3s ease;
    /* Uzun sözlərin (aaaaa...) kənara çıxmaması üçün əsas blok */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: #fafafa;
}

.comment-item b {
    color: #2c3e50;
    font-size: 14px;
    text-decoration: none;
}

.comment-item .comment-time {
    font-size: 10px;
    color: #bbb;
    margin-left: 5px;
}

.comment-item .comment-text {
    margin-top: 6px;
    color: #34495e;
    line-height: 1.5;
    font-size: 14px;
    /* Əgər daxildə div və ya span varsa, onlara da tətbiq edirik */
    word-break: break-word;
}

/* Silmək düyməsi üçün (X) */
.comment-item .delete-btn {
    float: right;
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    padding: 2px 5px;
}

.comment-item .delete-btn:hover {
    color: #e74c3c;
}



.post-time {
    color: #95a5a6;
    font-size: 11px;
}

.thought-text {
    display: block; 
    color: #34495e;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    /* Uzun simvollar (məs: aaaaa...) üçün mütləqdir */
    word-break: break-word; 
}

/* Multimedia nişanı (İkon + Yazı) */
.photo-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

.photo-line_tx {
    color: #ff8800; 
    font-weight: bold;
    font-size: 14px;
}

/* Mesaj mətni */
.actual-msg {
    display: inline; 
    vertical-align: middle;
    word-break: break-word;
}

/* Youtube və Musiqi Playerləri */
.video-box, .music-box {
    display: block;
    clear: both;
    margin: 10px 0;
    width: 100%;
    border-radius: 12px; 
    overflow: hidden;
}

.video-box iframe {
    display: block;
    width: 100%;
    border: 0;
}

.thought-footer {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.stat-item {
    text-decoration: none;
    color: #7f8c8d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.stat-item:hover {
    color: #3498db;
}

.stat-item.liked {
    color: #ff8800;
}

/* Şərh Bölməsi üçün xüsusi CSS (Kənara çıxmamaq üçün) */
#editable_msg {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    min-height: 70px;
    background: #fafafa;
    outline: none;
    font-size: 15px;
    word-break: break-word;
}

/* Efir üçün Oval Foto Bloku */
.thought-photo-holder {
    position: relative;
    margin: 15px auto;
    width: 100%;
    height: 320px; 
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.thought-photo-holder .bg-blur {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover !important;
    background-position: center !important;
    filter: blur(25px) brightness(0.6);
    transform: scale(1.1);
    z-index: 1;
}

.thought-photo-holder .main-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.thought-photo-holder .main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .thought-photo-holder {
        height: 190px;
    }
}
    .az-form-box { 
        width: 100%; max-width: 100%; box-sizing: border-box; 
        padding: 12px; background: #fff; border-radius: 12px; 
        border: 1px solid #e0e0e0; box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
        margin-bottom: 10px;
    }
    
    #editable_msg { 
        width: 100%; box-sizing: border-box; border: 1px solid #ddd; 
        border-radius: 10px; padding: 12px; min-height: 70px; 
        background: #fafafa; overflow-y: auto; outline: none; 
        font-size: 15px; line-height: 1.4; word-wrap: break-word; 
    }
    #editable_msg:focus { border-color: #ff8800; background: #fff; }
    
    #smile_box {
        display: none; width: 100%; box-sizing: border-box;
        background: #fff; border: 1px solid #ddd; border-radius: 8px;
        padding: 10px; margin-top: 10px; max-height: 150px; overflow-y: auto;
    }
    
    .az-form-footer { 
        display: flex; justify-content: space-between; 
        align-items: center; margin-top: 12px; 
    }
    .az-icons { display: flex; gap: 15px; align-items: center; }
    
    .icon-btn { 
        cursor: pointer; font-size: 24px; display: flex; 
        align-items: center; justify-content: center; color: #555; 
    }

    /* ŞƏKİL SEÇİLƏNDƏ GÖRÜNƏN ELEMENTLƏR */
    #photo_status { display: none; align-items: center; gap: 5px; font-size: 14px; }
    .remove-photo { 
        color: #ff4444; cursor: pointer; font-weight: bold; 
        padding: 0 5px; font-size: 18px; 
    }

    /* BETON GÖNDƏR DÜYMƏSİ - QƏTİ TƏRPƏNMİR */
.btn-send { background: #ff8800; color: #fff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; }
.btn-send:disabled { background: #ff8800; color: #fff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; }
    .btn-send:hover, .btn-send:active, .btn-send:focus { 
        background-color: #ff8800 !important; transform: none !important;
        outline: none !important; box-shadow: none !important;
    }

@keyframes highlightComment {
    0% { background: #fff9c4; transform: scale(0.98); }
    100% { background: transparent; transform: scale(1); }
}
.animate-new-comment {
    animation: highlightComment 1.5s ease-out;
    border-left: 3px solid #ff8800;
}

/* Sitat qutusu */
.quote-box {
    background: #f1f1f1;
    border-left: 4px solid #ff8800;
    padding: 8px 12px;
    margin-bottom: 10px !important; /* !important qoyuruq ki, başqa kodlar bunu əzməsin */
    display: block !important;      /* Mütləq alt-alta düşməlidir */
    font-size: 13px;
    color: #555;
    border-radius: 4px;
    font-style: italic;
    clear: both; /* Sağda-solda nəsə qalsa, onları aşağı itələsin */
}

/* Sitatın içindəki Nick */
.quote-box strong {
    color: #333;
    font-style: normal;
    margin-right: 5px;
    display: inline-block; /* Nik mesajla eyni sətirdə başlasın, amma öz çəkisi olsun */
}

/* Əsas cavab mətni */
.comment-text {
    display: block;
    margin-top: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word; /* Uzun sözlər qutudan çıxmasın */
}

.yt-video-container {
    width: 100%;
    /* Sabit hündürlüyü sildik, nisbət qoyduq */
    aspect-ratio: 16 / 9; 
    height: 320px; /* Kompüterdə həddindən artıq böyük olmasın deyə */
    margin: 10px 0;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

/* Şəklin konteyneri tam doldurması üçün */
.yt-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Boşluq qalmasın deyə şəkli tam yayır */
    display: block;
    opacity: 0.9;
}

.yt-video-container:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Mobil üçün xüsusi toxunuş */
@media (max-width: 768px) {
    .yt-video-container {
        border-radius: 12px; /* Mobildə daha incə künclər */
        height: 190px;  /* Mobildə ekranın tam enini tutsun */
    }
    
    /* Mobildə hover effekti bəzən ilişib qalır, onu söndürə bilərik */
    .yt-video-container:hover {
        transform: none;
    }
}

.yt-video-link {
    display: block; /* Link bütün sahəni tutsun */
    text-decoration: none !important; /* Altındakı xətti silirik */
    color: inherit; /* Yazı rəngini dəyişməsin */
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Mobildə klikləyəndə göy rəng çıxmasın */
}

.yt-video-link:active, .yt-video-link:focus {
    text-decoration: none;
    outline: none;
}

.video-info__eav5g {
    position: absolute;
    left: 0;
    bottom: 8px;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.video-info_ico__eav5g {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: rgba(255, 3, 3, 0.56);
    text-align: center;
    line-height: 34px;
}