.comments-container {
    width: 100%;
    max-width: 760px;
    margin: 30px auto;
    font-family: "Cairo", sans-serif;
}

/* صندوق كتابة تعليق */
.comment-area {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    border: 1px solid #e3e3e3;
}

.comment-area .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.input-section {
    flex: 1;
    position: relative;
}

#commentInput {
    width: 100%;
    background: #f0f2f5;
    border: 0;
    border-radius: 20px;
    padding: 12px 16px;
    color: #333;
    resize: none;
    font-size: 15px;
    outline: none;
}
/* منيو الإيموجي */
.dropdown-menu {
    position: absolute;
    top: -180px;
    left: 0;
    background: white;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: none;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.dropdown-menu p {
    margin: 0;
    font-size: 14px;
    opacity: .7;
}

/* زر الإرسال */
.send-btn {
    opacity: 0.3;
    pointer-events: none;
    background: #0084ff;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.send-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.comment {
    display: flex;
    gap: 12px;
}

.comment .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.comment .content {
    background: #f0f2f5;
    padding: 14px;
    border-radius: 14px;
    width: 100%;
}

.username {
    font-weight: 700;
}

.time {
    color: #666;
    font-size: 13px;
    margin-right: 6px;
}

.comment p {
    margin-top: 6px;
    line-height: 1.6;
}
/* عند اللغة العربية */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .comment-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .comment .content .header {
    flex-direction: row-reverse;
}

[dir="rtl"] .comment .username {
    margin-left: 0;
    margin-right: 8px;
}

/* عند اللغة الإنجليزية */
[dir="ltr"] {
    direction: ltr;
    text-align: left;
}
.comment-box,


/* أنيميشن جميل */
@keyframes pop {
    0% { transform: scale(0.55) rotate(var(--arrow-rotation)); }
    100% { transform: scale(1) rotate(var(--arrow-rotation)); }
}

/* شكل الـ comment-area */
.comment-area {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
}

.login-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.google-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #444;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.google-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.google-btn:active {
    transform: scale(0.97);
}

.google-icon {
    width: 22px;
    height: 22px;
    display: block;
}


/* ====== Comments List ====== */
.comments-list {
    margin-top: 20px;
    direction: rtl;
}

/* ====== Single Comment ====== */
.comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}

.comment img.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.comment .content {
    flex: 1;
}

.comment .header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.comment .username {
    font-weight: bold;
}

.comment .time {
    color: #777;
    font-size: 12px;
}

/* ====== Load More Button ====== */
.load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}

#loadMoreBtn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #4b79a1, #283e51);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
    transition: 0.25s;
}

#loadMoreBtn:hover {
    opacity: 0.85;
}

#loadMoreBtn:active {
    transform: scale(0.95);
}


/* صندوق كتابة تعليق */
.comment-area {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    border: 1px solid #e3e3e3;
}

.comment-area .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

#commentInput {
    width: 100%;
    background: #f0f2f5;
    border: 0;
    border-radius: 20px;
    padding: 12px 16px;
    resize: none;
    font-size: 15px;
    outline: none;
}

/* زر الإرسال */
.send-btn {
    opacity: 0.3;
    pointer-events: none;
    background: #0084ff;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.send-btn.active {
    opacity: 1;
    pointer-events: auto;
}

/* قائمة التعليقات */
.comments-list {
    margin-top: 20px;
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}

.comment .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.comment .content {
    flex: 1;
}

.comment .header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}

#loadMoreBtn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #4b79a1, #283e51);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
}
