/* ========================================
   تنسيقات صفحة القصص - نظام التعليقات المطور (Instagram Style)
   ======================================== */

.story-audio{
    margin:15px 0;
    background:#f8f9fa;
    border-radius:30px;
    padding:5px;
}

audio{
    width:100%;
    height:35px;
}

.story-card{
    
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 25px;
    border-top: 4px solid #9B59B6;
}

/* Actions Bar */
.story-actions{
    display:flex;
    justify-content:space-around;
    align-items:center;
    padding:10px 15px;
    gap:25px;
}

.action-btn{
    display:flex;
    align-items:center;
    background:none;
    border:none;
    cursor:pointer;
    color:#262626;
    padding: 0;
    transition: opacity 0.2s;
}

.action-btn:hover {
    opacity: 0.7;
}

.action-btn svg{
    width:24px;
    height:24px;
    stroke:currentColor;
    fill:none;
    stroke-width:2;
}

.action-btn span {
    margin-right: 5px;
    font-weight: 600;
    font-size: 14px;
}

.like-active{
    color:#9B59B6!important;
}

.like-active svg{
    fill: #9B59B6;
    stroke: #9B59B6;
}

/* Instagram Style Preview */
.comments-preview {
    padding: 0 15px 10px;
    font-family: 'Cairo', sans-serif;
}

.mini-comments-list {
    margin-bottom: 5px;
}

.mini-comment {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mini-comment .user-name {
    font-weight: 700;
    margin-left: 8px;
    color: #262626;
}

.mini-comment .comment-text {
    color: #262626;
}

.view-all-comments {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    margin-top: 5px;
    display: block;
}

/* Expanded Comments Section */
.comments-section {
    padding: 10px 15px;
    border-top: 1px solid #efefef;
    background: #fff;
}

.comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.comment-item {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.comment-content {
    font-size: 14px;
}

.comment-user {
    font-weight: 700;
    margin-left: 8px;
}

.comment-meta {
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 2px;
}

/* Instagram Style Input */
.comment-input-wrapper {
    display: flex;
    align-items: center;
    border-top: 1px solid #efefef;
    padding: 10px 0;
    margin-top: 10px;
}

.comment-input-wrapper textarea {
    flex: 1;
    border: none;
    background: none;
    resize: none;
    height: 24px;
    max-height: 80px;
    font-size: 14px;
    outline: none;
    padding: 0;
    color: #262626;
}

.comment-send-btn {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0 0 0 10px;
}

.comment-send-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #262626;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
}
