/* 
   ============================================
   USER COMMENTS STYLES
   ============================================
*/

.comment-input-area {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.comment-input-area:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(254, 42, 144, 0.1);
}

.comment-avatar-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comment-node {
    position: relative;
    padding-left: 0;
    margin-bottom: 2rem;
}

.comment-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: rgba(254, 42, 144, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .comment-item {
    background: #111;
    border-color: #222;
}

.comment-replies {
    position: relative;
    margin-top: 1rem;
    padding-left: 2.5rem;
    border-left: 2px solid var(--border-subtle);
}

.comment-reply-item {
    margin-bottom: 1rem;
}

/* Premium Button Styling for Comments */
.btn-comment-submit {
    background: var(--accent-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
}

.btn-comment-submit:hover {
    background: #d012e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 42, 144, 0.3);
}

.btn-comment-submit:disabled {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* === MOBILE REFINEMENTS FOR COMMENTS === */
@media (max-width: 576px) {
    .comment-item {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .comment-avatar-wrapper {
        width: 32px !important;
        height: 32px !important;
    }

    .comment-avatar {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .comment-replies {
        padding-left: 1.25rem !important;
        margin-left: 15px !important;
    }

    .comment-header {
        margin-bottom: 8px !important;
    }

    .comment-author-name {
        font-size: 0.9rem !important;
    }

    .comment-date {
        font-size: 0.72rem !important;
    }

    .comment-body-text {
        font-size: 0.9rem !important; /* Standardized mobile body text */
        line-height: 1.6 !important;
    }

    .comment-actions .btn-sm {
        padding: 4px 10px !important;
        font-size: 0.78rem !important;
    }

    .comment-form-container {
        margin-bottom: 2rem !important;
    }

    .comment-input-area textarea {
        font-size: 0.9rem !important;
        min-height: 85px !important;
    }

    .btn-comment-submit {
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 10px !important;
    }

    /* Guest User Info in Comments */
    .guest-info-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .guest-input {
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
    }

    /* Adjust replay form context menu */
    .reply-context {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}
