/* ======================================================
   CSG News Like & Comment Section - Custom Design
   ====================================================== */

/* Main Container Box */
.csg-news-reward-box {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

/* Action Bar Wrapper */
.csg-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* बटन्स मधील अंतर वाढवले आहे */
    padding-bottom: 12px;
    width: 100%;
}

/* Like & Comment Buttons - Full Width & Spacious Design */
.csg-new-like-btn,
.csg-comment-btn {
    flex: 1; /* दोन्ही बटनांना समान आणि मोठी जागा मिळेल */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f8f9fa;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 12px 24px; /* आतील पॅडिंग वाढवून बटने मोठी केली आहेत */
    font-size: 15px; /* फॉन्ट साईज वाढवला */
    font-weight: 600;
    border-radius: 8px; /* मॉडर्न स्क्वेअर-राऊंड लुक */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    width: 100%;
}

/* Hover Effect */
.csg-new-like-btn:hover,
.csg-comment-btn:hover {
    background-color: #f3f4f6;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Liked State */
.csg-new-like-btn.liked {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

/* Like Count Badge */
.csg-like-count {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 6px;
}

/* Like Count Badge */
.csg-comment-count {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 6px;
}

/* Comment Area Container */
/* .csg-comment-area {
    margin-top: 16px;
    padding-top: 8px;
}

/* Single Comment Box */
/* .csg-comment-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 5px;
}

.csg-comment-list::-webkit-scrollbar {
    width: 5px;
}

.csg-comment-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}  */

/* Comment Area Container Structure */
.csg-comment-area {
    margin-top: 16px;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
}

/* Scrollable Comments List (फक्त कमेंट्स स्क्रोल होतील) */
.csg-comment-list {
    max-height: 250px; /* जास्त कमेंट्स आल्या की २५०px नंतर स्क्रोल होईल */
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Custom Scrollbar Styling (कमेंट्स स्क्रोलबार सुंदर दिसण्यासाठी) */
.csg-comment-list::-webkit-scrollbar {
    width: 6px;
}

.csg-comment-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.csg-comment-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.csg-single-comment {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.csg-single-comment strong {
    color: #1e293b;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.csg-single-comment p {
    color: #475569;
    font-size: 13.5px;
    margin: 0;
    line-height: 1.5;
}

/* Comment Input Box */
.csg-comment-text {
    width: 100%;
    min-height: 70px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.csg-comment-text:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Post Comment Submit Button */
.csg-comment-submit {
    margin-top: 10px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    float: right;
    transition: background 0.2s ease, transform 0.1s ease;
}

.csg-comment-submit:hover {
    background: #1d4ed8;
}

.csg-comment-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Clearfix for float button */
.csg-comment-area::after {
    content: "";
    display: table;
    clear: both;
}

/* Smooth Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   Mobile Responsive Adjustments (Screen width < 600px)
   ====================================================== */
@media screen and (max-width: 600px) {
    .csg-news-reward-box {
        padding: 12px;
        border-radius: 8px;
    }

    .csg-action-bar {
            gap: 10px; /* मोबाईलवर २ बटनांमध्ये थोडे कमी अंतर ठेवले आहे */
        }

        .csg-new-like-btn,
        .csg-comment-btn {
            padding: 10px 12px;
            font-size: 14px;
        }

    .csg-comment-submit {
        width: 100%; /* Mobile वर Submit Button Full Width होईल */
        float: none;
    }
}



.csg-comment-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Comment Form Wrapper (हा भाग खाली Fix / Stationary राहील) */
.csg-comment-form-wrapper {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

/* Comment Input Box */
.csg-comment-text {
    width: 100%;
    min-height: 60px;
    max-height: 120px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.csg-comment-text:focus {
    outline: none;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Post Comment Submit Button */
.csg-comment-submit {
    margin-top: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    float: right;
    transition: background 0.2s ease;
}

.csg-comment-submit:hover {
    background: #1d4ed8;
}